$5 free credits when you sign up Claim now
Marlin 2b now available Test it!
MiniMax H3 now available! Test it!
Browse all Models
Browse all
Browse all
Browse all

Text-to-Image

Image generation API, free to start

Sign up, get $5 of credits and generate images from a prompt with one POST request. After the credits run out you pay per image.

  • FLUX.2 Klein at 1024 × 1024 for $0.0037 per image
  • $5 covers about 1,361 of those images
  • Up to 100 images a day on a free account

No credit card · Free credits valid for 90 days · Then top up and pay as you go, no subscription

FLUX.2 Klein 4B Text-to-Image
Coffee mug on a walnut table generated with FLUX.2 Klein on deAPI

PromptStudio product photo of a matte ceramic coffee mug with a single handle on a walnut table, soft morning window light, thin steam rising, shallow depth of field, warm amber tones

1024 × 1024 · 4 steps · seed 7 Cost on deAPI: $0.0037 (price as of October 2026)

Which image model to use

Every model below runs on the same API key and the same endpoint. Change the model field to switch.

FLUX.2 Klein 4B Product shots, photos, image edits with up to 3 reference images $0.0037 at 1024² 256–1536 px
Z-Image-Turbo Photoreal scenes, short text on signs $0.0063 at 768² 128–2048 px
Z-Anime Anime and illustration styles $0.0063 at 768² 128–2048 px
FLUX.1 Schnell Lowest price at the same size, drafts, bots $0.0019 at 768² 256–2048 px
Wooden cafe sign reading OPEN DAILY 8-18, generated with Z-Image-Turbo
Z-Image-Turbo Short text on a sign, rendered legibly. 768 × 768, $0.0063.
Isometric bookshop in the rain generated with FLUX.2 Klein
FLUX.2 Klein Isometric bookshop at night in the rain. 1024 × 1024, $0.0037.
Anime girl with headphones on a rooftop at sunset, generated with Z-Anime
Z-Anime Anime style with a detailed background. 768 × 768, $0.0063.

Image API pricing

You pay per image. No subscription and no monthly minimum.

FLUX.1 Schnell, 768 × 768 $0.0019 ≈ 2,618
FLUX.2 Klein, 512 × 512 $0.0019 ≈ 2,679
FLUX.2 Klein, 1024 × 1024 $0.0037 ≈ 1,361
Z-Image-Turbo, 768 × 768 $0.0063 ≈ 790
Z-Image-Turbo, 1024 × 768 $0.0077 ≈ 646

What the free account includes

  • $5 of credits after you verify your email (Google sign-in: right away)
  • No credit card needed to start
  • Up to 100 image requests a day until your first top-up
  • Credits are valid for 90 days from sign-up
Get $5 credits

Prices from the deAPI price API, October 2026, in USD. Paid models from partners (GPT Image, Nano Banana) need an account with at least one top-up.

Text-to-image API example

Send a prompt, get a request_id, then poll the job or receive a webhook. Replace YOUR_API_KEY with a key from your dashboard.

Endpoint
POST /api/v2/images/generations
Model IDs
Flux_2_Klein_4B_BF16, ZImageTurbo_INT8, ZAnimeDistill_8Step_INT8, Flux1schnell
Required fields
model, prompt, width, height, seed, plus steps for all four models above
Result
Job status at GET /api/v2/jobs/{request_id} with a result_url, or a webhook
Free account limits
3 requests per minute, 100 per day
curl -X POST 'https://api.deapi.ai/api/v2/images/generations' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "Flux_2_Klein_4B_BF16",
    "prompt": "studio photo of a ceramic mug, morning light",
    "width": 1024,
    "height": 1024,
    "steps": 4,
    "seed": 7
  }'
import time, requests

API = "https://api.deapi.ai/api/v2"
HEADERS = {"Authorization": "Bearer YOUR_API_KEY", "Accept": "application/json"}

job = requests.post(f"{API}/images/generations", headers=HEADERS, json={
    "model": "Flux_2_Klein_4B_BF16",
    "prompt": "studio photo of a ceramic mug, morning light",
    "width": 1024, "height": 1024, "steps": 4, "seed": 7,
}).json()["data"]

while True:
    status = requests.get(f"{API}/jobs/{job['request_id']}", headers=HEADERS).json()["data"]
    if status["status"] in ("done", "error"):
        break
    time.sleep(2)

print(status.get("result_url"))  # send this URL to your app or Telegram bot

From sign-up to your first image

You send a prompt as JSON and get back a link to the finished image. The models run on the deAPI distributed GPU network, so there is no GPU for you to host. To try prompts before writing code, use the Playground in your browser.

  1. Create a free account

    Sign up and get $5 of credits. No credit card.

  2. Create an API key

    In the dashboard go to Settings → API Keys and create a key.

  3. Send a prompt

    POST to /api/v2/images/generations and read the image URL from the job.

Free image API FAQ

deAPI gives every new account $5 of credits with no credit card. At $0.0037 per FLUX.2 Klein image that is about 1,361 images, with up to 100 image requests a day on a free account. After that you pay per image.
Yes. The Playground runs the image models in your browser, with no code and no key, and gives a small number of free images a day without an account (the counter resets at 00:00 UTC). To call the API from your own code you need a key: after sign-up, create one in the dashboard under Settings → API Keys.
FLUX.1 Schnell, if you compare models at the same size and default steps. It costs $0.0019 per 768 × 768 image (October 2026). The price depends on size and steps, so smaller images cost less. FLUX.2 Klein costs $0.0037 at 1024 × 1024.
Yes, for FLUX.1 Schnell, Z-Image-Turbo and Z-Anime. Set the base URL to https://oai.deapi.ai/v1, use your deAPI key and call images.generate. On that endpoint FLUX.2 Klein is available for image edits only, so for Klein text-to-image use /api/v2/images/generations.
Yes. The API is plain HTTPS with JSON, so any bot framework can call it. Send the prompt, wait for the job, then post the result_url image to the chat.
FLUX.2 Klein 4B, Z-Image-Turbo, Z-Anime and FLUX.1 Schnell are released under the Apache 2.0 license, which allows commercial use. Your use of the API is covered by the deAPI Terms of Service, which make you responsible for having the rights your use needs.
New requests are rejected with an insufficient_balance error until you top up ($10, $25 or $50). There is no subscription. You add funds and keep paying per image. The first top-up also moves you to the higher Premium rate limits. Unused bonus credits expire 90 days after sign-up.

Generate your first image with $5 of free credits

No credit card, no subscription.