# Magic Studio โ€” Zapi reference > Anonymous AI image generation โ€” text-to-image, no auth. **Base URL:** `https://api.zpi.web.id` **Auth:** Send `x-api-key: YOUR_KEY` header on every request. Get a free key at https://zpi.web.id/dashboard/keys. **Response envelope:** `{ status, message, content }` **Rate limit:** 60 req/min on free tier. **Related:** - Detail page: https://zpi.web.id/api/ai/magicstudio - Endpoint catalog: https://zpi.web.id/category/ai - Concise index: https://zpi.web.id/llms.txt - Full reference: https://zpi.web.id/llms-full.txt --- ## Magic Studio **Category:** ai ยท **Slug:** `magicstudio` **Detail page:** https://zpi.web.id/api/ai/magicstudio Anonymous AI image generation โ€” text-to-image, no auth. **Tags:** image, ai, generation ### Generate Anonymous text-to-image generation. Returns image as inline base64 data URL. - **Method:** `POST` - **Endpoint:** `https://api.zpi.web.id/v1/ai:magicstudio/generate` **Parameters:** | Name | Type | Location | Required | Description | |------|------|----------|----------|-------------| | `prompt` | string | body | yes | 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') | **cURL:** ```bash curl -X POST "https://api.zpi.web.id/v1/ai:magicstudio/generate" \ -H "x-api-key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "prompt": "A cute golden retriever puppy playing in a sunny park, photorealistic" }' ``` **JavaScript / TypeScript:** ```javascript const res = await fetch("https://api.zpi.web.id/v1/ai:magicstudio/generate", { method: "POST", headers: { "x-api-key": process.env.ZAPI_KEY, "Content-Type": "application/json" }, body: JSON.stringify({ "prompt": "A cute golden retriever puppy playing in a sunny park, photorealistic" }) }); const data = await res.json(); ``` **Python:** ```python import requests r = requests.post("https://api.zpi.web.id/v1/ai:magicstudio/generate", headers={"x-api-key": "YOUR_API_KEY"}, json={ "prompt": "A cute golden retriever puppy playing in a sunny park, photorealistic" }) data = r.json() ``` **Example response:** ```json { "images": [ { "width": 1024, "base64": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAYE...", "height": 1024, "mimeType": "image/jpeg", "sizeBytes": 164487 } ], "prompt": "A cute golden retriever puppy playing in a sunny park, photorealistic", "provider": "magicstudio" } ``` --- _Generated: 2026-08-02T14:21:59.359Z_