ApiframeApiframe Docs

Introduction

Apiframe API — generate images, videos, and music with a single unified API.

Apiframe provides a unified REST API for AI-powered media generation. Submit a prompt and get back images, videos, or music — powered by leading AI models like Midjourney, Kling, and Suno.

Base URL

All API requests are made to:

https://api-v2.apiframe.ai/v2

How it works

  1. Authenticate with your API key via the X-API-Key header
  2. Submit a generation request to the appropriate endpoint (images, videos, or music)
  3. Poll the job or receive a webhook when the result is ready
  4. Download the result from the CDN URL in the job response

Available models

CategoryModelEndpoint
ImageMidjourneyPOST /v2/images/generate
ImageNano BananaPOST /v2/images/generate
VideoGrok Imagine VideoPOST /v2/videos/generate
VideoHailuo 02POST /v2/videos/generate
VideoHailuo 2.3POST /v2/videos/generate
VideoHailuo 2.3 FastPOST /v2/videos/generate
VideoLuma Ray 2POST /v2/videos/generate
VideoLuma Ray Flash 2POST /v2/videos/generate
VideoKlingPOST /v2/videos/generate
VideoMidjourney VideoPOST /v2/videos/generate
VideoSeedancePOST /v2/videos/generate
VideoSoraPOST /v2/videos/generate
VideoVeo 2POST /v2/videos/generate
VideoVeo 3POST /v2/videos/generate
VideoVeo 3 FastPOST /v2/videos/generate
VideoVeo 3.1POST /v2/videos/generate
VideoVeo 3.1 FastPOST /v2/videos/generate
MusicSunoPOST /v2/music/generate
EditingTopaz Image / Clarity UpscalerPOST /v2/images/upscale
EditingBria / 851-labs Background RemovePOST /v2/images/background-remove
EditingFlux Fill Pro (inpaint / outpaint)POST /v2/images/edit
EditingTopaz Video UpscalePOST /v2/videos/upscale

Rate limits

  • Authenticated requests: 500 requests per minute per user
  • Account info (GET /v2/me): 60 requests per minute per user

Exceeding the rate limit returns a 429 Too Many Requests response.

Error format

All error responses follow a consistent format:

{
  "error": "Human-readable error message",
  "details": {}
}
StatusMeaning
400Validation failed — check details for field-level errors
401Missing or invalid API key / token
402Insufficient credits
403Forbidden — admin role required or API key inactive
404Resource not found
429Rate limit exceeded
503Service temporarily unavailable

On this page