Create stunning images from text descriptions. Photorealistic, artistic, or anything you can imagine.
Create original images from text prompts in any style
Modify parts of existing images using natural language
Create similar versions of an existing image
from mythicdot import MythicDot client = MythicDot() # Generate an image response = client.images.generate( model="mythic-image-3", prompt="A white cat sitting on a velvet couch, oil painting style", size="1024x1024", quality="hd", n=1 ) # Get the image URL image_url = response.data[0].url print(image_url) # Or get base64-encoded image response = client.images.generate( model="mythic-image-3", prompt="A white cat sitting on a velvet couch", response_format="b64_json" ) image_data = response.data[0].b64_json
Modify specific areas of an image using a mask:
# Edit an existing image response = client.images.edit( model="mythic-image-3", image=open("photo.png", "rb"), mask=open("mask.png", "rb"), prompt="Add a red hat", size="1024x1024" )
The mask should be a PNG with transparent areas where you want edits. Fully transparent = edit area, opaque = keep original.
| Parameter | Type | Description |
|---|---|---|
prompt required |
string | Text description of the desired image (max 4000 chars) |
model |
string | mythic-image-3 (default) or mythic-image-3-hd |
size |
string | 1024x1024, 1024x1792, or 1792x1024 |
quality |
string | standard (default) or hd |
n |
integer | Number of images (1-10) |
style |
string | vivid (default) or natural |
response_format |
string | url (default) or b64_json |