Workspace / Explore
IMAGE GENERATION CAPABILITY

Text to Image API

Generate images from text prompts with a unified Text to Image API. Compare available AI image models, output settings and published costs before integrating one into your product.

10 published endpoints10 priced endpoints4 providers
WHAT

What Is a Text to Image API?

A Text to Image API lets an application turn a written prompt into an image programmatically. Depending on the selected endpoint, developers can control resolution, aspect ratio, output format and quality. Giky API exposes multiple compatible model endpoints through one task workflow while preserving each model's published controls.

MODELS

Explore Text to Image Models

Browse AI image generation APIs by provider, resolution and price per image. Each card represents a text-to-image endpoint listed in the current model catalog.

10 models match this capability

GPT Image 2 API image showing iridescent glass sculpture
OpenAI

GPT Image 2

Resolution
1K, 2K, 4K
Aspect ratio
1:1, 1:2, 2:1, 1:3, 3:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 9:21, 21:9
Quality
low, medium, high
Published from$0.0133 / request
GPT Image 2.5 Flare API image showing fashion still life with fabric and flowers
OpenAI

GPT Image 2.5 Flare

Resolution
1K, 2K, 4K
Aspect ratio
1:1, 1:2, 2:1, 1:3, 3:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 9:21, 21:9
Quality
low, medium, high, xhigh, max
Published from$0.014 / request
GPT Image 2.5 Sunburst API image showing observatory beneath a nebula
OpenAI

GPT Image 2.5 Sunburst

Resolution
1K, 2K, 4K
Aspect ratio
1:1, 1:2, 2:1, 1:3, 3:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 9:21, 21:9
Quality
low, medium, high, xhigh, max
Published from$0.014 / request
Seedream 5 Flash API image showing outdoor wedding editorial
ByteDance

Seedream 5 Flash

Resolution
1K, 1.5K, 2K
Aspect ratio
1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:9
Output format
png, jpeg
Published from$0.02268 / request
Nano Banana API image showing luxury perfume bottle on reflective stone
Google

Nano Banana

Resolution
Not published
Aspect ratio
1:1, 9:16, 16:9, 3:4, 4:3, 3:2, 2:3, 5:4, 4:5, 21:9, auto
Output format
png, jpeg
Published from$0.028 / request
Nano Banana 2.1 API image showing fine-dining salmon presentation
Google

Nano Banana 2.1

Resolution
1K, 2K, 4K
Aspect ratio
1:1, 2:3, 3:2, 1:4, 4:1, 3:4, 4:3, 4:5, 5:4, 1:8, 8:1, 9:16, 16:9, 21:9, auto
Output format
png, jpg
Published from$0.028 / request
Qwen Image (original) API image showing astronaut portrait above Earth
Alibaba

Qwen Image (original)

Resolution
1024*1024, 1536*1024, 1024*1536
Aspect ratio
Not published
Output format
jpeg, png, webp
Published from$0.028 / request
Seedream 5 Lite API image showing anime-inspired city at sunset
ByteDance

Seedream 5 Lite

Resolution
2K, 3K, 4K
Aspect ratio
1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:9
Output format
png, jpeg
Published from$0.0385 / request
Seedream 5 Pro API image showing sports car moving through a rain-lit city
ByteDance

Seedream 5 Pro

Resolution
1K, 2K
Aspect ratio
1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:9
Output format
png, jpeg
Published from$0.049 / request
Nano Banana Pro API image showing modern house at sunset
Google

Nano Banana Pro

Resolution
1K, 2K, 4K
Aspect ratio
1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, auto
Output format
png, jpg
Published from$0.126 / request
COMPARISON

Compare Text to Image API Models and Pricing

Compare text-to-image models by provider, image resolution and published generation cost. Check the model page before launch because quality tiers and output settings can change the final price.

ModelProviderResolutionAspect ratioOutput formatPublished from
GPT Image 2OpenAI1K, 2K, 4K1:1, 1:2, 2:1, 1:3, 3:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 9:21, 21:9png, jpeg, webp$0.0133 / request
GPT Image 2.5 FlareOpenAI1K, 2K, 4K1:1, 1:2, 2:1, 1:3, 3:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 9:21, 21:9png, jpeg, webp$0.014 / request
GPT Image 2.5 SunburstOpenAI1K, 2K, 4K1:1, 1:2, 2:1, 1:3, 3:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 9:21, 21:9png, jpeg, webp$0.014 / request
Seedream 5 FlashByteDance1K, 1.5K, 2K1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:9png, jpeg$0.02268 / request
Nano BananaGoogleNot published1:1, 9:16, 16:9, 3:4, 4:3, 3:2, 2:3, 5:4, 4:5, 21:9, autopng, jpeg$0.028 / request
Nano Banana 2.1Google1K, 2K, 4K1:1, 2:3, 3:2, 1:4, 4:1, 3:4, 4:3, 4:5, 5:4, 1:8, 8:1, 9:16, 16:9, 21:9, autopng, jpg$0.028 / request
Qwen Image (original)Alibaba1024*1024, 1536*1024, 1024*1536Not publishedjpeg, png, webp$0.028 / request
Seedream 5 LiteByteDance2K, 3K, 4K1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:9png, jpeg$0.0385 / request
Seedream 5 ProByteDance1K, 2K1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:9png, jpeg$0.049 / request
Nano Banana ProGoogle1K, 2K, 4K1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, autopng, jpg$0.126 / request

Select a model and configuration to compare catalog prices for the same operation, resolution, duration and price conditions.

ModelConfigurationOne request
GPT Image 2.5 Flaretext to image · 4K · quality: high$0.378
GPT Image 2.5 Sunbursttext to image · 4K · quality: high$0.378
GPT Image 2text to image · 4K · quality: high$0.9576

Models without an identical published price configuration are excluded. Equal settings do not imply equal visual quality. Totals include one source image for image-input operations; additional input-image fees may apply.

Submit a task and retrieve its result

Replace example.com image URLs with your own publicly reachable HTTPS assets. Save the returned task ID, query its status until succeeded, then read outputs. Keep the same idempotency key and body when retrying an uncertain submission.

export GIKY_API_KEY="YOUR_API_KEY"
REQUEST_ID="$(uuidgen)"
curl --fail-with-body 'https://gikyapi.com/v1/tasks' \
  -H "Authorization: Bearer $GIKY_API_KEY" \
  -H "Idempotency-Key: $REQUEST_ID" \
  -H "Content-Type: application/json" \
  --data '{
  "model": "gpt-image-2",
  "operation": "text-to-image",
  "input": {
    "prompt": "Describe the subject, motion and camera direction",
    "resolution": "4K",
    "aspect_ratio": "1:1",
    "quality": "high",
    "output_format": "png"
  }
}'

# Replace YOUR_TASK_ID with the id from the POST response; repeat GET while queued or processing.
curl --fail-with-body 'https://gikyapi.com/v1/tasks/YOUR_TASK_ID' \
  -H "Authorization: Bearer $GIKY_API_KEY"
MODEL SELECTION

Which Text to Image API Fits Your Image App?

Choose an AI image generator API from the requirements you can verify: price per image, available resolutions and supported controls. Visual quality still needs testing with your own prompts and style requirements.

Lowest published starting cost

GPT Image 2

GPT Image 2: starting at $0.0133 per request. This is the lowest starting configuration in this operation, not a comparison at identical settings.

Highest published output tier

GPT Image 2, GPT Image 2.5 Flare, GPT Image 2.5 Sunburst, Nano Banana 2.1, Seedream 5 Lite, Nano Banana Pro

GPT Image 2, GPT Image 2.5 Flare, GPT Image 2.5 Sunburst, Nano Banana 2.1, Seedream 5 Lite, Nano Banana Pro offer the highest listed output tier for this operation. Compare the exact resolution and price before selecting an endpoint.

FAIR COMPARISON

How to Compare Text to Image Results Fairly

Run every image model with the same prompt, aspect ratio and output tier. Compare the returned image, actual request charge and completion time as one dated test record.

Keep the input constant

Use the same prompt and, where required, the same source image for every model.

Match the configuration

Compare the same resolution, duration, aspect ratio and audio setting instead of model-wide starting prices.

Record the complete result

Store the output, actual charge, latency, task status, model version and test date together.

Separate facts from evaluation

Published parameters can be compared automatically; visual quality requires reviewed outputs from a repeatable test.

Giky API does not label a model as best for motion, realism or cinematic quality until a configuration-matched result set has been generated and reviewed.

UNIFIED WORKFLOW

How to Generate Images from Text with an API

  1. 1

    Write the image prompt

    Describe the subject, composition and visual direction your application should send.

  2. 2

    Choose an image model

    Compare text-to-image pricing, resolution options and required request fields.

  3. 3

    Submit the generation task

    Send the prompt, model slug and output settings with an idempotency key.

  4. 4

    Save the generated image

    Poll the task or receive a webhook, then store the image URL and generation record.

Text-to-image API request

Change the model slug or image settings without replacing the submit-and-status task flow.

curl -X POST https://gikyapi.com/v1/tasks \
  -H "Authorization: Bearer $GIKY_API_KEY" \
  -H "Idempotency-Key: your-unique-request-id" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-image-2",
  "operation": "text-to-image",
  "input": {
    "prompt": "Describe the subject, motion and camera direction",
    "resolution": "1K",
    "aspect_ratio": "1:1",
    "quality": "low",
    "output_format": "png"
  }
}'

# Replace YOUR_TASK_ID with the id from the POST response; repeat GET while queued or processing.
curl https://gikyapi.com/v1/tasks/YOUR_TASK_ID -H "Authorization: Bearer $GIKY_API_KEY"
WHEN

When to Use a Text to Image API

WHY

Why Use One API for AI Image Generation?

Compare image models first

Review text-to-image endpoints and configuration prices before adding one to your product.

Keep output settings explicit

Send resolution, aspect ratio and quality fields supported by the chosen image model.

Route by image cost

Use the published price for the selected configuration when estimating a generation request.

Add models without a new task system

Retain one asynchronous task lifecycle while mapping model-specific image controls.

What to Know About AI Image Models and Pricing

What is a Text to Image API?

It is an HTTP API that accepts a text prompt and model-specific settings, then returns an image generation task and output.

Which Text to Image API is the cheapest on Giky API?

GPT Image 2 currently has the lowest published starting price at $0.0133 / request. The final image cost can change with resolution, quality and other supported settings, so compare an identical configuration before selecting a model.

Can I switch between image models?

Yes. The task workflow stays consistent, while the model slug and supported input fields identify the selected endpoint.

Can I use generated images commercially?

Commercial use depends on the applicable model provider terms and your rights to the prompt, references and output. Review those terms before production use.