Mage API · Image model
MOSS-Image API
Long prompts and bilingual text, open weights
POST https://api.mage.space/v1/moss_image/generateAt a glance
The MOSS-Image API runs MOSS-Image through Mage at POST https://api.mage.space/v1/moss_image/generate. A request at the default settings costs 25 Gems (about $0.025), with no subscription. MOSS-Image takes no @handle mentions.
- ImageOutput
- 1Variant
- 25Gems per image, default
- $0.025About, in USD
Overview
What the MOSS-Image API does
An open-weights text-to-image model that follows long, detailed prompts and renders English and Chinese text. Up to 2K with LoRAs; no reference images.
An open-weights image model for long, detailed prompts and English or Chinese text, at 1K or 2K.
It generates from the prompt alone.
Quick start
Call the MOSS-Image API
Set MAGE_API_KEY, submit to /moss_image/generate, and poll status_url until the request completes.
cURL
STATUS_URL=$(curl --request POST 'https://api.mage.space/v1/moss_image/generate' \
--header "Authorization: Bearer $MAGE_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"prompt": "Editorial portrait in soft daylight, 35mm film look",
"aspect_ratio": "4:5",
"model_id": "moss-image"
}' | jq -r '.status_url')
# Repeat until status is "completed"; result.url is the file
curl "$STATUS_URL" --header "Authorization: Bearer $MAGE_API_KEY"TypeScript
// npm install @mage-space/sdk
import Mage from '@mage-space/sdk';
const mage = new Mage(); // reads MAGE_API_KEY
const request = await mage.run('moss_image', {
prompt: 'Editorial portrait in soft daylight, 35mm film look',
aspect_ratio: '4:5',
model_id: 'moss-image',
});
console.log(request.result.url);Python
# pip install mage-space
from mage_space import Mage
mage = Mage() # reads MAGE_API_KEY
request = mage.run("moss_image", {
"prompt": "Editorial portrait in soft daylight, 35mm film look",
"aspect_ratio": "4:5",
"model_id": "moss-image",
})
print(request["result"]["url"])Models
MOSS-Image model_id values
Send model_id to pick a variant. A request without one runs the default.
| model_id | Name | Default |
|---|---|---|
| moss-image | MOSS-Image | Yes |
Options
MOSS-Image parameters
Allowed values across all variants; a variant may offer fewer. The docs list the options per variant.
| Field | Values |
|---|---|
| aspect_ratio | 21:9, 16:9, 3:2, 5:4, 1:1, 4:5, 2:3, 9:16, 9:21 |
| resolution | 1k, 2k |
More image models
Other image generation APIs on Mage
Nano Banana 2 API
Crisp, readable text, up to 4K
SDXL Plus API
SDXL with faces and hands fixed
Stable Diffusion v1.5 API
The classic, on a budget
Stable Diffusion v3.5 Large API
The Stable Diffusion that listens best
Stable Diffusion XL API
Photoreal-tuned SDXL
Z-Image API
The fastest image model on Mage
FAQ
Frequently asked questions
How much does the MOSS-Image API cost?
What is the MOSS-Image API endpoint?
Which MOSS-Image models can I call?
Does MOSS-Image support reference images or characters?
Can I use MOSS-Image from Claude or ChatGPT?
How long are MOSS-Image results kept?
Start building with Mage
One account, one Gems balance, every model. Pay only for what you generate.