REST API for generation

AI image generation API for apps, scripts, and agents.

Create generation jobs, upload assets, poll status, and fetch protected result URLs with the same MagicPixels account and credits used in the studio.

Create your account instantly. Subscribe to unlock generation credits.

image generation APItext to image APIimage edit APIjob polling
Create image job
curl -X POST https://api.magicpixels.ai/v1/jobs \
  -H "Authorization: Bearer mp_live_xxx.yyy" \
  -H "Content-Type: application/json" \
  -d '{"mode":"text_to_image","prompt":"Editorial product photo on brushed steel"}'
Generated product image that can be created through the MagicPixels API.
API-ready output

What this mode is good for

  • Create text-to-image, image-to-image, audio, and image-to-video jobs.
  • Use bearer API keys from the same account that handles billing and credits.
  • Poll job status and fetch owner-authorized result URLs.

Workflow

  1. Create a MagicPixels account and API key.
  2. Upload source assets when a job needs an input image or audio file.
  3. Create the generation job with JSON.
  4. Poll the job endpoint until completed, then fetch the result asset.

Pricing

  • Text-to-image API jobs: 1 credit
  • Image-to-image API jobs: 1 credit
  • Audio generation: 1 credit per 10 seconds
  • Image-to-video: 22 credits per second
One account for app, API, and MCP

Start with this workflow, then keep iterating from the same history.

MagicPixels keeps prompts, credits, uploads, generated assets, API keys, and protected downloads under one account.

FAQ

Does the API use separate credits?

No. API jobs use the same credits, account, and history as the MagicPixels web studio.

Can the API upload source images?

Yes. Use the asset upload endpoint, then pass the returned asset id to image-to-image or image-to-video jobs.

AI image generation API for apps, scripts, and agents.

Use the MagicPixels REST API to create text-to-image, image-to-image, audio, and image-to-video jobs from your own tools.

Create API account