|
1
|
# Quiver AI |
|
2
|
|
|
3
|
Proxy requests to Quiver AI via Replit-managed billing. |
|
4
|
|
|
5
|
## Callback |
|
6
|
|
|
7
|
Use `externalApi__quiver_ai` in `code_execution`. |
|
8
|
|
|
9
|
## Allowed operations |
|
10
|
|
|
11
|
- `POST` `/svgs/generations` - Generate SVGs from a text prompt (JSON or SSE response). |
|
12
|
- `POST` `/svgs/vectorizations` - Vectorize a raster image to SVG (JSON or SSE response). |
|
13
|
- `GET` `/models{/:model_id}?` - List models or fetch a single model. |
|
14
|
|
|
15
|
Authorization is handled automatically by Replit. Do not pass an `Authorization` header. |
|
16
|
|
|
17
|
## Quickstart |
|
18
|
|
|
19
|
1. Call the callback with a supported `path` and `method`. |
|
20
|
2. Put URL params in `query` and inspect `result.body`. |
|
21
|
|
|
22
|
## Example |
|
23
|
|
|
24
|
```javascript |
|
25
|
const result = await externalApi__quiver_ai({ |
|
26
|
path: '/svgs/generations', |
|
27
|
method: 'POST', |
|
28
|
query: {}, |
|
29
|
}) |
|
30
|
|
|
31
|
console.log(result.status) |
|
32
|
console.log(result.body) |
|
33
|
``` |