Text To Image API Pricing
As of October 10, 2026, Text To Image costs $0.052 per image on AI/ML API.
- Per image
- $0.052
- Providers
- 1
- Added to LiteLLM
- August 2025
Text To Image pricing by provider
2 listings across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
What Text To Image costs in practice
Generating 1,000 images
| AI/ML API | $52.00 |
Use Text To Image with LiteLLM
Call Text To Image through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/images/generations. LiteLLM tracks the cost of every request at these prices.
from litellm import image_generation
response = image_generation(
model="aiml/flux/kontext-pro/text-to-image",
prompt="A cute baby sea otter",
)model_list:
- model_name: text-to-image
litellm_params:
model: aiml/flux/kontext-pro/text-to-image
# credentials: see the provider's LiteLLM docs pagecurl http://0.0.0.0:4000/v1/images/generations \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-1234" \
-d '{
"model": "text-to-image",
"prompt": "A cute baby sea otter",
"n": 1,
"size": "1024x1024"
}'Text To Image FAQ
How much does Text To Image cost?
Text To Image costs $0.052 per image on AI/ML API.
Which providers offer Text To Image?
Text To Image is available from AI/ML API through LiteLLM, using the model name aiml/flux/kontext-pro/text-to-image.
How do I call Text To Image with an OpenAI-compatible API?
Use the LiteLLM Python SDK with model="aiml/flux/kontext-pro/text-to-image", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/images/generations from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.
When did LiteLLM add Text To Image?
Text To Image was added to LiteLLM's model price file in August 2025.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Provider pricing pages:
LiteLLM docs: AI/ML API.
Provider pages: AI/ML API.
