Magic Image-to-3D API

magic/image-to-3d
Magic Image-to-3D is a generative AI model designed to reconstruct high-quality 3D objects from 1 to 4 input images taken from different viewpoints.
Output
$0.65 / gen
Released
Dec 8, 2025

How to use Magic Image-to-3D API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to magic/image-to-3d.
import requests

r = requests.post(
    "https://api.aimlapi.com/v1/images/generations",
    headers={"Authorization": "Bearer " + AIMLAPI_KEY},
    json={
      "model": "magic/image-to-3d",
      "prompt": "A cat holding a sign that says hello"
    },
)
print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/images/generations", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "model": "magic/image-to-3d",
    "prompt": "A cat holding a sign that says hello"
  }),
});
console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/images/generations \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"magic/image-to-3d","prompt":"A cat holding a sign that says hello"}'

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Magic Image-to-3D API Pricing

TypePrice
Output
$0.65 / gen

Magic Image-to-3D vs other models

ModelInputOutputContextBest for
$0.65 / gen
Image generation at scale
$0.325 / 1M tokens
$78 / 1M tokens
128K tokens
Image generation at scale
$6.5 / 1M tokens
$39 / 1M tokens
Image generation at scale
Image generation at scale
$0.0195 / MP (variable)
Image generation at scale

Frequently asked questions

Magic Image-to-3D takes image, text as input and returns image.

Magic Image-to-3D became available on December 8, 2025.

Magic Image-to-3D is priced at $0.65 / gen.

Magic Image-to-3D is billed per generation — a fixed charge per output rather than by prompt length.

Yes, Magic Image-to-3D accepts image input as well as a text prompt.

Magic Image-to-3D was built by Magic Inc..

Send a request to https://api.aimlapi.com/v1/images/generations with magic/image-to-3d as the model id.

Yes. Magic Image-to-3D is served through AI/ML API, so the same key and endpoint format used for other models applies.

It generates 3D assets from single 2D images, intended for use in game development, VR, and design workflows.

Start building with Magic Image-to-3D

Get API Key
1000+ models, one API.