Skip to main content
APIAny.AI gives developers one stable API surface for production AI workflows across chat, image generation, video generation, and multimodal applications. The public API stays stable while APIAny.AI handles model execution, billing, task history, and standardized responses behind a consistent developer experience.

Unified model access

Call public model IDs with one API key and one stable API surface.

Async media tasks

Long-running image and video generation jobs return a task_id immediately. Poll GET /v1/tasks/{task_id} to retrieve results when they are ready.

Multi-format chat

Start with the OpenAI-compatible /v1/chat/completions endpoint, then adopt Anthropic-compatible /v1/messages or Gemini-compatible /v1beta/models/{model}:generateContent endpoints as your integration evolves.

Credits and traceability

Every request can be tied to credits, task history, standardized results, and usage records.

Base URL

API base URL:
https://apiany.ai

Public API shape

APIAny.AI exposes a small, predictable set of public calling patterns:
  • Chat completionsPOST /v1/chat/completions: OpenAI-compatible text generation and chat.
  • Anthropic-compatible messagesPOST /v1/messages: Anthropic Messages-compatible request and response shape.
  • Gemini-compatible content generationPOST /v1beta/models/{model}:generateContent: Gemini generateContent-compatible request and response shape; {model} is the public APIAny.AI model ID.
  • Image generation (async)POST /v1/images/generations: Create an asynchronous image generation task and receive a task_id.
  • Image generation (sync)POST /v1/images/generations/sync: Generate an image and wait for the result when the request fits a simple blocking workflow.
  • Image editingPOST /v1/images/edits: Apply edits or inpainting to an existing image using a model and prompt.
  • Video generation (async)POST /v1/videos/generations: Create an asynchronous video generation task and receive a task_id.
  • Video generation (sync)POST /v1/videos/generations/sync: Generate a video and wait for the result when a blocking workflow is acceptable.
  • Task lookupGET /v1/tasks/{task_id}: Retrieve the current status and final result of any asynchronous image or video task.
  • Credits balanceGET /v1/credits/balance: Check how many credits remain on your account at any time.
Image and video generation endpoints are asynchronous by default. Your request returns a task_id immediately rather than blocking until the media is ready. Production systems should prefer asynchronous creation endpoints followed by task polling. Synchronous variants (/sync) are available for simple integrations where waiting for the result in a single request is acceptable.

How it works

Send a request with a public model ID and your API key. APIAny.AI executes the model request, records usage, and returns a standardized response. Public model IDs are stable product contracts, so your integration can keep the same API shape as the model catalog evolves. Last updated: 2026-07-06 11:00 (UTC+8)