Skip to main content

1. Create a key

Open /app/api-keys, create a key, and store it as an environment variable.

2. Queue a generation

Send exactly one primary source. This example uses a URL.
The response is immediate:
docs-example: queued-response
For memes, send sourceUrl, sourceText, a JSON sourceImage data URI, or a multipart sourcePdf/sourcePptx/sourceImage upload to POST /api/meme instead. Meme jobs use the same 202 response shape and polling endpoint, support 1:1, 4:5, 9:16, and 16:9, and cost 2 credits because they include live culture scouting and creative selection before image generation.

3. Poll the job

When the job completes, use imageUrl.
docs-example: completed-job-response

CLI

The local CLI uses the same API key.