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 Content
Node.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
NameTypeRequiredDefaultDescription
qstringNo-Prompt describing the image
nintegerNo1Number of images (1–4)
Status
v1Online