AI Image
Generate image(s) from a prompt using our image model.
AIaiimagegeminiCost: 50 pt
Endpoint
/api/v1/ai-image?n=1
curl (bash)
curl -H "x-api-key: $APINEST_API_KEY" "/api/v1/ai-image?n=1"
Windows PowerShell
iwr -Uri "/api/v1/ai-image?n=1" -Headers @{ "x-api-key" = $env:APINEST_API_KEY } | Select-Object -Expand ContentNode.js example
const res = await fetch("/api/v1/ai-image?n=1", {
headers: { "x-api-key": process.env.APINEST_API_KEY! }
})
console.log(await res.json())Include your API Key via the "x-api-key" header.
Parameters
Query parameters accepted by this endpoint
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| q | string | No | - | Prompt describing the image |
| n | integer | No | 1 | Number of images (1–4) |
Status
v1 — Online