Skip to content

Text to Image API

A text-to-image API generates an image from a prompt and returns the provider generation response. fal, Higgsfield, MiniMax, PiAPI and ReAPI provide this through Longwave. Published rates start at $0.003 per image (fal, 1 megapixel).

Add to Longwave

Text to Image API with your agent

Paste this into Claude Code or a terminal. Then run /mcp to sign in.

providers
5

Providers compared

Provider Price Access
fal Generate an image from text (FLUX Pro) fal.image.flux-pro-v1-1
3 more variants
  • Generate an image from text (FLUX 2) $0.012 per image fal.image.flux-2
  • Generate an image from text (Flux schnell) $0.003 per image fal.image.flux-schnell
  • Generate an image from text (Flux dev) $0.025 per image fal.image.flux-dev
$0.04 per image Price for 1 megapixel of output with FLUX1.1 pro; the charge depends on output megapixels. Your key
Higgsfield higgsfield.image.soul-v2 Exact generation price depends on the model, parameters and account; the authenticated estimate endpoint supplies the authoritative quote. Your key
MiniMax minimax.image.generate $0.0035 per image image-01 model; one generated image. Your key
PiAPI piapi.image.submit See vendor pricing. Your key
ReAPI reapi.image.submit The selected model and usage determine the charge; no single per-call price applies to this function. Your key

Prices are each vendor's published rate. Functions marked “No key needed” are billed at that rate in Longwave credits, with no markup. Functions marked “Your key” are billed to your own vendor account.

Run it

In Claude Code, Codex, Cursor or ChatGPT, add the Longwave MCP server once, then ask for the result. In Longwave, ask in any thread.

Questions people ask

Which providers offer a Text to Image API?

Through Longwave: fal, Higgsfield, MiniMax, PiAPI and ReAPI. The table above compares their prices and access. To use one in particular, name it to your agent or give its function id.

Do I need an API key?

Providers marked "Your key" need your own key, added once in Longwave settings. Providers marked "Connect account" need you to sign in to that account.

Text to Image API in Longwave

Ask any Longwave thread for the result, or add Longwave to Claude Code, Codex, Cursor or ChatGPT.

Add to Longwave