AI Text
Generate text from a prompt.
AIaitextgeminiCost: 10 pt
Endpoint
/api/v1/ai-text?q=Say%20hello%20from%20ApiNest%20AI.
curl (bash)
curl -H "x-api-key: $APINEST_API_KEY" "/api/v1/ai-text?q=Say%20hello%20from%20ApiNest%20AI."
Windows PowerShell
iwr -Uri "/api/v1/ai-text?q=Say%20hello%20from%20ApiNest%20AI." -Headers @{ "x-api-key" = $env:APINEST_API_KEY } | Select-Object -Expand Content
Node.js example
const res = await fetch("/api/v1/ai-text?q=Say%20hello%20from%20ApiNest%20AI.", { 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 | Say hello from ApiNest AI. | Prompt text |
Status
v1 — Online