zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
On this page
  • Playground
  • Code examples
  • Full reference
  • Related APIs
Artificial Intelligence/Magic Studio
Logo Magic Studio

Magic Studio

Anonymous AI image generation — text-to-image, no auth.

Endpoints
1
Requests
23
Updated
2 months ago
For LLMs
llms.txt
Endpoint health18 hours ago
  • generatepassing, 2.9s
1/1 passingdaily 01:00 WIB

Playground

1 endpoint
POST/v1/ai:magicstudio/generateno cache1 paramchecking key…
Parameters
promptstringrequired
text/plain

Text-to-image prompt. Output is a fixed 1024x1024 JPEG (no size/aspect/style controls upstream). Include style cues directly in the prompt (e.g. 'anime style', 'oil painting', 'photorealistic')

·
Response
EXAMPLE
{
  "images": [
    {
      "width": 1024,
      "base64": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYE...<truncated>",
      "height": 1024,
      "mimeType": "image/jpeg",
      "sizeBytes": 164487
    }
  ],
  "prompt": "A cute golden retriever puppy playing in a sunny park, photorealistic",
  "provider": "magicstudio"
}

Code examples

Generate
zpi-sdkrecommended
// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";

const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });

const data = await client.run("ai:magicstudio", "generate", {
  "prompt": "A cute golden retriever puppy playing in a sunny park, photorealistic"
});
console.log(data);
Full SDK reference →
request.sh
curl -X POST "https://api.zpi.web.id/v1/ai:magicstudio/generate" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "content-type: application/json" \
  --data '{"prompt":"A cute golden retriever puppy playing in a sunny park, photorealistic"}'

Full reference

1 endpoint · plain text
POSTGenerate/v1/ai:magicstudio/generateAnonymous text-to-image generation. Returns image as inline base64 data URL.

Parameters

promptstringrequiredin body
Text-to-image prompt. Output is a fixed 1024x1024 JPEG (no size/aspect/style controls upstream). Include style cues directly in the prompt (e.g. 'anime style', 'oil painting', 'photorealistic')

Request

curl -X POST "https://api.zpi.web.id/v1/ai:magicstudio/generate" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "images": [
    {
      "width": 1024,
      "base64": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYE...<truncated>",
      "height": 1024,
      "mimeType": "image/jpeg",
      "sizeBytes": 164487
    }
  ],
  "prompt": "A cute golden retriever puppy playing in a sunny park, photorealistic",
  "provider": "magicstudio"
}

Related APIs

More in ai

Copilot AI

ai/copilot

Microsoft Copilot — chat completion OpenAI-compatible, support streaming SSE

829 calls·10m cache

ChatGPT (chatgpt.com)

ai/chatgpt

ChatGPT (mode anonim, tanpa login) dari OpenAI. Endpoint kompatibel OpenAI Chat Completions (stream & non-stream).

700 calls·no cache

Chatex

ai/chatex

Chatex chat — OpenAI-compatible chat completions.

232 calls·no cache

Felo AI

ai/felo

AI search assistant dengan web real-time — OpenAI-compatible, support streaming, return sumber referensi.

200 calls·no cache

Dolphin AI

ai/dolphin

Dolphin 24B uncensored chat — chat completion OpenAI-compatible, support streaming SSE

77 calls·10m cache

Google AI (g.ai)

ai/google-aimode

Asisten penelusuran AI dari Google (AI Mode / g.ai) — jawaban grounded ke web realtime dengan sitasi. OpenAI-compatible chat completions.

66 calls·no cache
Browse APIsPricingDocsMCP serverGet an API key
zapi.One key, one response shape.
TermsPrivacyCookiesAUPRefunds© 2026