42ROWS
API DOCUMENTATION

42rows API — Quickstart.

Generate ad-ready creative via REST. Authenticate with a key, POST a prompt, get back a job id. Result lands in ~30s for image, ~60s for 3D, ~3 min for video.

No SDK required — it's plain JSON over HTTPS.

1

Get an API key

Create a free account, then issue an API key from your dashboard. Free tier includes 10 generations/month. No credit card required.

Keys look like 42r_sk_a1b2c3d4_xK9pV... and are shown only once at creation. Store securely (env var, secret manager).

2

Make your first call

Submit a generation. Returns a job id immediately — the asset is produced asynchronously.

curl -X POST https://42rows.com/api/v1/tools/generate \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer 42r_sk_YOUR_KEY" \
  -d '{
    "prompt": "LinkedIn sponsored post for a fintech SaaS, headline \"Market-Leading Precision\", stat \"+12.4%\", CTA \"Download Insights\"",
    "type": "image"
  }'

Response

{
  "id": "a3f4e7b2-9c1d-4e8f-b0a2-7d3c8f1e9b4a",
  "slug": "linkedin-sponsored-post-fintech-saas",
  "queuePosition": 0,
  "estimatedWait": "30s",
  "status": "queued"
}

Then poll GET /api/v1/tools/my-generations until status === "completed", and download via GET /api/v1/tools/my-generations/{id}/file.

3

Endpoint reference

POST /api/v1/tools/generate

Submit a new generation. Returns a job id immediately; result is async.

{ prompt: string, type: "image" | "video" | "3d", imageUrl?: string }
GET /api/v1/tools/my-generations

List your recent generations with status and final URL when ready.

Query: ?limit=20&type=image
GET /api/v1/tools/my-generations/{id}/file

Download the generated asset (PNG / MP4 / GLB).

POST /api/v1/api-keys

Create a new API key. Save the response — full key shown only once. Max 5 active.

{ name?: string }

All endpoints accept either JWT (from POST /api/v1/auth/login) or API key (from POST /api/v1/api-keys) in the Authorization: Bearer header.

4

What you can generate

ActortypeFormatsTiersPrice
Image Creative"image"1080×1080, 1200×628, 1080×1920flat$0.20 / call
Video Creative"video"MP4 4–8s, 16:9 / 9:16, 720p–1080pflat$1.50 / call
3D Creative"3d"GLB, STL, OBJ, PLYlite / standard / high / ultra$0.08 – $1.50

Subscription plans (Builder $19, Growth $99, Scale $399) include monthly quotas with overage at retail rates above. Pay-as-you-go available without subscription.

5

Try without signing up

The Playground lets you generate one asset of each type without an account. Useful to validate output quality before integrating.

6

Errors you'll see

StatusMeaningAction
401Missing or invalid API keyCheck Authorization header
402Insufficient creditsUpgrade plan or top up — see body error.upgrade_url
403Captcha required (anonymous calls only)Authenticate with API key to skip
422Validation error (prompt too short, invalid type)Check body schema
429Already a generation of that type in queueWait, then retry

On 402, response body includes current_balance, required, operation, upgrade_url. Header X-Credits-Remaining is set on every billed response.

Need help? Email info@42rows.com or open an issue on GitHub.

Beta API. Endpoint paths and request schemas may evolve before GA. Subscribe to release notes via your account.