ApiframeApiframe Docs

Credit Costs

How many credits each model and variant costs per generation.

Every generation deducts credits from your team's balance at submission time. If a job fails, the credits are automatically refunded.

You can check your current balance via the Account endpoint or in the Apiframe console.

Image generation

ModelVariantCredits per generation
Midjourney5
Nano Banana3
Nano Banana Pro1K / 2K26
Nano Banana Pro4K52
Nano Banana 21K5
Nano Banana 22K7
Nano Banana 24K10
Flux 1.1 Pro5
Flux 1.1 Pro Ultra8
Flux 2 Pro6
Flux 2 Dev3
Flux 2 Flex4
Flux 2 Max10
Seedream 33
Seedream 3.13
Seedream 43
Seedream 4.54
Seedream 5 Lite4
Ideogram V28
Ideogram V2 Turbo5
Ideogram V2a4
Ideogram V2a Turbo3
Ideogram V3 Balanced6
Ideogram V3 Turbo3
Ideogram V3 Quality9
Ideogram CharacterTurbo10
Ideogram CharacterDefault15
Ideogram CharacterQuality20
Imagen 35
Imagen 3 Fast3
Imagen 44
Imagen 4 Ultra6
Imagen 4 Fast2
DALL-E 312
DALL-E 22
GPT Image 1.5Auto14 × n
GPT Image 1.5Low2 × n
GPT Image 1.5Medium5 × n
GPT Image 1.5High14 × n
GPT Image 2Low4 × n
GPT Image 2Medium9 × n
GPT Image 2High23 × n
GPT Image 2Auto23 × n
Kling Image2 × n
Qwen Image3 × n
Qwen Image 23
Qwen Image 2 Pro10
Grok Imagine Image3
Reve Create3
Flux LoRA (AI Photos inference)2 × num_outputs

AI Photos (LoRA training)

POST /v2/loras — train a Flux LoRA from 15-30 subject photos.

StepCreditsNotes
LoRA create (upload + caption + zip)2Charged at submission. Refunded on failure.
LoRA training255Charged just before training starts. Refunded if training fails.
Inference per image2See Flux LoRAnum_outputs of 1-4 supported.

Video generation

ModelVariantCredits per generation
Kling 2.6 Pro5s (no audio)15
Kling 2.6 Pro5s (with audio)25
Kling 2.6 Pro10s (no audio)25
Kling 2.6 Pro10s (with audio)40

Wan 2.7 (per second of generated video)

credits = rate × duration (default duration = 5 s).

ModelVariantCredits / second
Wan 2.7T2V · 720p17
Wan 2.7T2V · 1080p17
Wan 2.7I2V · 720p17
Wan 2.7I2V · 1080p26
Wan 2.7 R2Vany resolution17

Image editing

POST /v2/images/upscale, POST /v2/images/background-remove, POST /v2/images/edit — Upscale, background removal, inpainting and outpainting.

ModelVariantCredits per generation
Topaz Image Upscale≤ 12 MP output9
Topaz Image Upscale≤ 24 MP output9
Topaz Image Upscale≤ 36 MP output17
Topaz Image Upscale≤ 48 MP output17
Topaz Image Upscale≤ 60 MP output26
Topaz Image Upscale≤ 96 MP output34
Topaz Image Upscale≤ 132 MP output41
Topaz Image Upscale≤ 168 MP output50
Topaz Image Upscale≤ 336 MP output91
Topaz Image Upscale≤ 512 MP output140
Clarity Upscaler3
Bria Background Remove4
851-labs Background Remove2
Flux Fill Pro (inpaint or outpaint)9

The Topaz output-megapixel tier is computed automatically from the input image's dimensions × upscale_factor² and rounded up to the next configured row.

Video editing

POST /v2/videos/upscale — Topaz video upscale and frame interpolation.

Pricing is per second of input video, tiered by output resolution × output fps. The route probes the input duration via ffprobe at submit time and charges cost-per-second × ceil(duration).

ModelVariantCredits / second of input
Topaz Video Upscale720p · 24 fps1
Topaz Video Upscale720p · 30 fps1
Topaz Video Upscale720p · 60 fps2
Topaz Video Upscale1080p · 24 fps4
Topaz Video Upscale1080p · 30 fps4
Topaz Video Upscale1080p · 60 fps7
Topaz Video Upscale4K · 24 fps13
Topaz Video Upscale4K · 30 fps13
Topaz Video Upscale4K · 60 fps26
Wan 2.7 VideoEditany resolution17

Music generation

ModelCredits per generation
Suno10

How credits work

  • Deducted at submission — credits are reserved the moment you send a generation request.
  • Refunded on failure — if a job fails (provider error, content policy violation, etc.), the full credit cost is returned to your balance.
  • Snapshotted per job — the creditCost field on a job reflects the cost at the time of submission, even if pricing changes later.
  • Team-scoped — credits belong to your team, not individual users. All team members share the same balance.

Checking your balance

curl https://api.apiframe.ai/v2/me \
  -H "X-API-Key: afk_your_api_key_here"

The response includes your current credit balance:

{
  "id": "...",
  "email": "...",
  "team": {
    "id": "...",
    "credits": 850
  }
}

On this page