Async Image Generation APIv1 Live

Generate stunning images via API.

An Ocean of the Highest-Quality
Images at the Lowest Prices

$0.03per image
charged only on success
Async jobs
Wallet billing
S3 storage
Moderation
3 free trials
POST /v1/generateRequest
curl -X POST https://api.sharkapi.dev/v1/generate \
  -H "Authorization: Bearer sk_live_••••••••" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "1k",
    "prompt": "Deep ocean shark, cinematic, 8K"
  }'
200 OKResponse
{
  "job_id": "job_8f2a9d3c",
  "status": "queued",
  "estimated_cost": "$0.03",
  "poll_url": "/v1/jobs/job_8f2a9d3c"
}
Poll every 2s
·
Charged only on success
·
S3 URL returned
product images
AI generated image
AI generated image
AI generated image
AI generated image
AI generated image
AI generated image
AI generated image
AI generated image
product images
AI generated image
AI generated image
AI generated image
AI generated image
AI generated image
AI generated image
AI generated image
AI generated image
Simple flow

How it works

From sign-up to image URL in six clean steps.

01

Sign up

Create your account and receive 3 free trial generations instantly.

02

Get token

Auto-generate your first API token on onboarding. Create more anytime.

03

Add balance

Top up your wallet with $10 minimum. Only charged on successful jobs.

04

Send request

POST to /v1/generate with your prompt, mode, and optional image.

05

Poll status

Receive a job_id. Poll /v1/jobs/:id every 2 seconds until complete.

06

Receive image

Get the S3 image URL. Wallet deduction finalizes only at this point.

Simple pricing

Pay only for what you generate

Wallet-based. Only charged on successful jobs. Failed jobs cost nothing.

Most Popular

1K Mode

$0.03
per request
1024 × 1024
Coming Soon

2K Mode

$0.05
per request
2048 × 2048

Minimum wallet top-up $10 · Only $10 multiples accepted

Everything you need

Built for production

Enterprise-grade image API with the simplicity of a weekend project.

Async generation

Submit and poll. Never block your server waiting for image completion.

Wallet billing

Pre-load balance. Charged only when image_url is confirmed delivered.

Multiple API tokens

Create named tokens per project. Revoke instantly without rotating others.

Text + image input

Send text prompts, or combine with a reference image for guided output.

Full request history

Every job logged with status, cost, mode, token, and moderation result.

Moderation system

Built-in illegal content detection blocks harmful prompts before generation.

Simple integration

Integrate in 60 seconds

Three steps from any language to your first generated image.

curl -X POST https://api.sharkapi.dev/v1/generate \
  -H "Authorization: Bearer sk_live_••••••••" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "1k",
    "prompt": "Deep ocean shark, cinematic lighting, 8K"
  }'
Free for everyone

3 free image generations. No card required.

Every account gets 3 complimentary generations on-site. Test 1K and 2K modes before adding any balance.

SharkApi.dev

Ready to dive in?

Join developers building with SharkApi.dev. Start with 3 free generations — no credit card required.