Reference and help
Main contentEvery endpoint of the PopNow API on one page, with links to the full OpenAPI contract.
The complete machine-readable API specification is openapi.yaml (OpenAPI 3.1). Import it into Postman, Insomnia or a code generator, or provide it to an AI agent. Use this page as an endpoint index.
- Base URL:
https://api.popnow.ai/api/v1 (chat and OpenAI-compatible routes: https://api.popnow.ai/v1)
- Authentication:
Authorization: Bearer sk-popnow-… on every request
- Native API response envelope:
{ "code", "msg", "data", "request_id" }; code: 200 indicates success
- Amounts: use the USD decimal strings
costUsd, estimatedCostUsd, maxChargeUsd, availableUsd, heldUsd, totalUsd and totalSpend. These are decimal strings with up to nine decimal places, never rounded. API-key calls, the developer MCP and Playground runs spend your PopNow balance. Confirm quotes with quoteId and expectedCostUsd: quote.maxChargeUsd; see Billing
| Method and path | Does | Page |
|---|
POST /jobs/createTask | Create a generation task (optional ?wait= up to 60 s) | Tasks |
GET /jobs/recordInfo?taskId= | Read a task's state and result | Tasks |
GET /jobs | List this key's tasks | Tasks |
POST /jobs/quote | Price a request without running it | Billing |
POST /jobs/retry | Create a new task from a failed or expired task | Tasks |
POST /jobs/purge | Delete a finished task's content | Tasks |
| Method and path | Does | Page |
|---|
GET /models | Every callable model with prices (?includeSchema=1 for input schemas) | Models |
GET /models/{model} | One model, including its input schema | Models |
| Method and path | Does | Page |
|---|
POST /common/upload-url | Ticket for a direct upload | Media |
POST /files/{fileId}/commit | Finish an upload and get its popnow:// URI | Media |
POST /files/import | Import a LoRA file from a link | Assets |
POST /common/download-url | Fresh signed link to a task's output | Media |
GET /assets, POST /assets | List or save assets | Assets |
GET, PATCH, DELETE /assets/{assetId} | Read, rename or delete one asset | Assets |
GET /assets/entities | Your characters | Assets |
GET /assets/entities/{entityId} | One character with its images in order | Assets |
GET /assets/usage | Storage plan and usage | Assets |
| Method and path | Does | Page |
|---|
GET /chat/credit | Balance: available, held, total | Billing |
GET /usage | This key's usage by day and by model | Billing |
| Method and path | Does | Page |
|---|
GET /recipes | Your saved recipes and canvas workflows | Saved recipes |
GET /recipes/{id} | One recipe or workflow, its inputs and current price | Saved recipes |
POST /recipes/{id}/run | Quote, then confirm a USD budget with currency, max_usd and quote_id | Saved recipes |
GET /recipes/runs/{runId} | Follow a USD run with the API key that started it | Saved recipes |
POST /recipes/runs/{runId}/resume | Quote and approve the total budget to resume a paused USD run | Saved recipes |
GET /skills, GET /skills/{id} | Your Poppie skills and their instructions | Saved recipes |
GET /agent-skills | List or search agent skills | Agent skills |
GET /agent-skills/{slug} | One agent skill with install steps | Agent skills |
GET /agent-skills/{slug}/download | Download its package | Agent skills |
| Method and path | Does | Page |
|---|
POST /productions | Quote, then open a production with one USD budget | Productions |
GET /productions | The productions this key opened | Productions |
GET /productions/{id} | One production's budget, spent, held and remaining amounts | Productions |
GET /productions/{id}/events | Its holds, charges, refunds and raises | Productions |
POST /productions/{id}/budget | Quote, then raise the total budget | Productions |
POST /productions/{id}/close | Close it | Productions |
Chat calls return their answer in the same response, either as a complete result or a stream. Each route preserves its protocol's request, response and error formats, so you can use compatible official SDKs with the corresponding PopNow base URL.
| Method and path | Does | Page |
|---|
POST /v1/chat/completions | OpenAI Chat Completions | Chat models |
POST /v1/responses | OpenAI Responses, stateless | Chat models |
POST /v1/messages | Anthropic Messages | Chat models |
POST /v1beta/models/{model}:generateContent | Gemini; :streamGenerateContent?alt=sse streams | Chat models |
POST /v1/embeddings | Vectors from an embedding model, OpenAI Embeddings compatible | Chat models |
GET /v1/models | Every model in OpenAI's list shape; ?modality=text for chat models | Chat models |
| Header | Direction | Meaning |
|---|
Idempotency-Key | Request | Makes retries of a write safe for 24 hours (Idempotency) |
Accept-Language | Request | Language of error messages (Errors) |
X-PopNow-Retention | Request | Shorten how long one task's content is kept, in seconds |
X-Request-Id | Response | Same as request_id; quote it to support |
X-RateLimit-Limit, X-RateLimit-Remaining, Retry-After | Response | Rate limits (Rate limits) |