Multiple image model families
Route requests to Gemini image variants, GPT Image models, and future models without rebuilding account and billing code.
Use Pixapi to generate images with Gemini image models, GPT Image models, and other visual models through one authenticated REST API, one credit system, and one developer workflow.
Text-to-image request
Pass the model id and prompt; Pixapi handles routing and usage tracking.
curl https://api.pixapi.ai/v1/images/generations \
-H "Authorization: Bearer $PIXAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3-pro-image-preview",
"prompt": "A cinematic product photo",
"n": 1,
"size": "1:1"
}'Pixapi image generation uses POST /v1/images/generations for synchronous text-to-image requests and POST /v1/async/images/generations for task-based image requests.
The request uses Bearer authentication, a canonical model field such as gemini-3-pro-image-preview, a prompt, and optional n, size, and quality fields.
Successful URL responses return generated assets in response.data[0].url, so server code can store the URL with the user, request id, model id, and credit record.
Competitor pages usually highlight raw model access. Pixapi adds the operational layer teams need after the prototype works.
Route requests to Gemini image variants, GPT Image models, and future models without rebuilding account and billing code.
Keep prompt, model, output count, aspect ratio, and response handling consistent across supported image providers.
Track generation spend, failed requests, and account balances in one Pixapi dashboard instead of multiple vendor consoles.
Create, rotate, and revoke API keys while keeping visual generation calls behind your backend.
Docs, llms.txt, and model pages make it easier for coding agents to generate correct integration code.
Use category guidance for architecture choices, then drill into model pages for parameters, pricing hints, and examples.
| Need | Recommended Pixapi route | Why it fits |
|---|---|---|
| Fast prompt-to-image output | Gemini 2.5 Flash Image | Lower-latency workflows and cost-efficient previews. |
| Higher-quality campaign assets | Gemini 3 Pro Image Preview or GPT Image 2 | Better composition control and commercial output quality. |
| Model comparison | /model catalog plus /v1/images/generations | Change only the model id while keeping request handling stable. |
| Backend product integration | Bearer-authenticated REST API | Keeps keys secret and lets your product add user-level controls. |
Review endpoints, authentication, request fields, and response formats.
Create and protect a bearer API key before making production calls.
Compare available image and video models by capability and cost.
Check credit packs, billing rules, and current product pricing.
It is a server-side API that accepts a prompt and model id, then returns generated image URLs or task results that your application can store and display.
Pixapi exposes curated image models including Gemini image models, and GPT Image variants. The live model catalog is the source of truth.
No. Pixapi provides one account, one API key, and one credit ledger for supported model routes.
Yes. Keep Pixapi calls on your backend, map your users to your own rate limits, and track generated assets by request id.
Create a key, choose a model id, and send your first text-to-image request through Pixapi in minutes.
Create API key