Documentation Index
Fetch the complete documentation index at: https://docs.mynth.io/llms.txt
Use this file to discover all available pages before exploring further.
Use metadata to carry your own application context through the task lifecycle.
const task = await mynth.image.generate({
prompt: "Packaging concept for a botanical tea brand",
model: "google/gemini-3.1-flash-image",
metadata: {
requestId: "req_123",
userId: "usr_123",
campaign: "spring-launch",
},
});
Mynth returns that metadata in:
- the full task object
- webhook payloads
This is useful for mapping Mynth tasks back to your own jobs, users, orders, or records.
Metadata can contain nested objects and arrays. The maximum payload size is 2 KB.