New users get free credits — no credit card requiredGet started
Image GenerationLive on APIAny

GPT Image 2 API

GPT Image 2 provides image generation and editing through a production-ready API with clear per-image pricing and task tracking.

Text to ImageImage EditProduct ImageCreative Variation

Preview appears here

Run a request with your API key to create a tracked async task, consume credits, and receive the final media result.

Transparent credits

All model calls show USD pricing and equivalent credits before generation.

Task history

Every async request is recorded with status, callback, result, and cost metadata.

OpenAI-style API

Use a familiar authorization pattern and consistent JSON request bodies.

API Reference

Create a media generation task

Model details map directly to the framework's `/api/v1/video/generate`, task status, callback, and credit accounting endpoints.

curl https://devnextapiany.mexxxxai.win/api/v1/video/generate \
  -H "Authorization: Bearer $APIANY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "A premium AI platform product video",
    "duration": 5,
    "aspect_ratio": "16:9"
  }'