See pricing & more on mynth.io.
Capabilities
| |
|---|
| Modes | Text-to-image |
| Inputs | None |
| Native auto size | No |
| Magic prompt | Improved (model-tuned) |
Magic prompt for this model is model-tuned for better results. Set magic_prompt: true to use
it.
Generate
import Mynth from "@mynthio/sdk";
const mynth = new Mynth();
const task = await mynth.image.generate({
prompt: "Architectural photograph of a brutalist library at golden hour",
model: "tongyi-mai/z-image-turbo",
size: "landscape",
count: 1,
});
console.log(task.urls);
curl https://api.mynth.io/image/generate \
-X POST \
-H "Authorization: Bearer $MYNTH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Architectural photograph of a brutalist library at golden hour",
"model": "tongyi-mai/z-image-turbo",
"size": "landscape",
"count": 1
}'
Magic prompt
Set magic_prompt: true to let Mynth rewrite your prompt before generation. This model has improved, model-tuned magic prompts.
const task = await mynth.image.generate({
prompt: "Architectural photograph of a brutalist library at golden hour",
model: "tongyi-mai/z-image-turbo",
magic_prompt: true,
size: "landscape",
});
curl https://api.mynth.io/image/generate \
-X POST \
-H "Authorization: Bearer $MYNTH_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Architectural photograph of a brutalist library at golden hour",
"model": "tongyi-mai/z-image-turbo",
"magic_prompt": true,
"size": "landscape"
}'
See Control prompts.