We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.

Image generation API

Turn prompts and reference images into product shots, illustrations and marketing visuals. Choose aspect ratio, resolution and number of images per request, and pay only for the images you generate.

  • Product and marketing imagery
  • Illustrations for articles and apps
  • Editing with reference images
  • Thumbnails and social cards
Sign in to use thisCreate free account
Results will appear here.
5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign inSession cost $0.00

Image generation API · 63 models

ModelPrice
Recraft: Recraft V4.1 Flashrecraft/recraft-v4.1-flash$0.02 / image
Black Forest Labs: FLUX 3 Image Kleinblack-forest-labs/flux-3-image-klein$0.03 / image
Black Forest Labs: FLUX.2 Klein 4Bblack-forest-labs/flux.2-klein-4b$0.05 / megapixel
ByteDance Seed: Seedream 5.0 Flashbytedance-seed/seedream-5-0-flash$0.06 / image
Qwen: Qwen Image 2.1 Turboqwen/qwen-image-2.1-turbo$0.06 / image
Sourceful: Riverflow V2.5 Fastsourceful/riverflow-v2.5-fast$0.07 / image
Sourceful: Riverflow V2 Fastsourceful/riverflow-v2-fast$0.07 / image
Black Forest Labs: FLUX.2 Problack-forest-labs/flux.2-pro$0.11 / megapixel
Qwen: Qwen Image 3qwen/qwen-image-3$0.11 / image$0.01 / image
Recraft: Recraft V4 Stylesrecraft/recraft-v4-styles$0.12 / image
ByteDance Seed: Seedream 5.0 Litebytedance-seed/seedream-5-0-lite$0.12 / image
Recraft: Recraft V4.1 Utilityrecraft/recraft-v4.1-utility$0.12 / image
Recraft: Recraft V4.1recraft/recraft-v4.1$0.12 / image
Recraft: Recraft V4recraft/recraft-v4$0.14 / image
Recraft: Recraft V3recraft/recraft-v3$0.14 / image
ByteDance Seed: Seedream 4.5bytedance-seed/seedream-4.5$0.14 / image
Black Forest Labs: FLUX 3 Imageblack-forest-labs/flux-3-image$0.14 / image
Qwen: Qwen Image 3 Proqwen/qwen-image-3-pro$0.14 / image$0.01 / image
Qwen: Qwen Image 2.1 Proqwen/qwen-image-2.1-pro$0.16 / image
ByteDance Seed: Seedream 5.0 Probytedance-seed/seedream-5-0-pro$0.16 / image$0.01 / image
Recraft: Recraft V4 Styles Vectorrecraft/recraft-v4-styles-vector$0.18 / image
xAI: Grok Imagine Image 2.0x-ai/grok-imagine-image-2.0$0.14 / image$0.04 / image
SpaceXAI: Grok Imagine Image Qualityx-ai/grok-imagine-image-quality$0.18 / image$0.04 / image
Black Forest Labs: FLUX.2 Flexblack-forest-labs/flux.2-flex$0.21 / megapixel
Black Forest Labs: FLUX.2 Maxblack-forest-labs/flux.2-max$0.25 / megapixel
Recraft: Recraft V4.1 Vectorrecraft/recraft-v4.1-vector$0.28 / image
Recraft: Recraft V4 Vectorrecraft/recraft-v4-vector$0.28 / image
Recraft: Recraft V4 Styles Prorecraft/recraft-v4-styles-pro$0.35 / image
Recraft: Recraft V4 Styles Pro Vectorrecraft/recraft-v4-styles-pro-vector$0.42 / image
Sourceful: Riverflow V2.5 Prosourceful/riverflow-v2.5-pro$0.46 / image
Sourceful: Riverflow V2 Prosourceful/riverflow-v2-pro$0.53 / image
Recraft: Recraft V4.1 Utility Prorecraft/recraft-v4.1-utility-pro$0.74 / image
Recraft: Recraft V4.1 Prorecraft/recraft-v4.1-pro$0.74 / image
Recraft: Recraft V4 Prorecraft/recraft-v4-pro$0.88 / image
Recraft: Recraft V4.1 Pro Vectorrecraft/recraft-v4.1-pro-vector$1.05 / image
Recraft: Recraft V4 Pro Vectorrecraft/recraft-v4-pro-vector$1.05 / image
Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)google/gemini-3.1-flash-lite-image$0.88 / 1M tokens$5.25 / 1M tokens
Google: Nano Banana (Gemini 2.5 Flash Image)google/gemini-2.5-flash-image$1.05 / 1M tokens$8.75 / 1M tokens
Tencent: Hy Image 3.5 Previewtencent/hy-image-v3.5-preview$5.60 / 1M tokens$5.60 / 1M tokens
Google: Nano Banana 2 (Gemini 3.1 Flash Image)google/gemini-3.1-flash-image$1.75 / 1M tokens$10.50 / 1M tokens
Showing 40 of 63 models →

How to call the Image generation API API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "recraft/recraft-v4.1-utility-pro".

Which endpoint do I call?

POST /api/v1/images/generations with the model id and prompt. It is the same call the openai SDK makes with images.generate().

How is an image priced?

Per image or per image token, depending on the model. Each model page shows the exact price.

Can I edit an existing image?

Many image models accept reference images in the request. Check the input modalities on the model page for image input.

How do I get consistent results?

Describe subject, style, lighting and framing explicitly, keep the same model, and reuse a reference image when the model supports it.

What sizes are available?

Aspect ratios and resolutions depend on the model and are listed on each model page.

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api14.com/api/v1",
  apiKey: process.env.API14_API_KEY,
});

const result = await client.images.generate({
  "model": "recraft/recraft-v4.1-utility-pro",
  "prompt": "A minimalist product photo of a ceramic mug on a wooden table",
  "n": 1,
  "aspect_ratio": "1:1"
});
import { writeFile } from "node:fs/promises";
await writeFile("image.png", Buffer.from(result.data[0].b64_json, "base64"));

Popular AI API services