Docs
Balance-
Quickstart
Copy quickstart MD
AR24_API_KEY=sk_test_...
curl -X POST https://www.ar24.studio/api/v1/images/jobs \
-H "Authorization: Bearer $AR24_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: demo-001" \
-d '{"prompt":"A clean product photo","size":"1024x1024"}'Quickstart
Create an image job
curl -X POST https://www.ar24.studio/api/v1/images/jobs \
-H "Authorization: Bearer sk_test_..." \
-H "Idempotency-Key: user_123-request_456" \
-H "Content-Type: application/json" \
-d '{"prompt":"A clean product photo","size":"1024x1024","end_user_id":"user_123"}'Poll
Read job result
curl https://www.ar24.studio/api/v1/images/jobs/job_xxx \ -H "Authorization: Bearer sk_test_..."
Pricing
GPT-IMG
Price300 VNDGPT-IMG / completed image
Statuses
Job lifecycle
- queuedJob accepted and waiting for the worker.
- processingProvider is generating the image.
- succeededUse
image.urlas the result. - failedRead
error.codeanderror.message. - timing
created_at -> started_atis queue time;started_at -> finished_atis generation time.