Asynchronous Inference
Create generation
curl -X POST 'https://api.netmind.ai/v1/generation' \
--header 'Authorization: {{API_TOKEN}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "Qwen/Qwen-Image",
"config": {
"prompt": "Generate a cup of coffee",
"image_size": "landscape_4_3",
"num_inference_steps": 30,
"guidance_scale": 2.5,
"num_images": 1,
"enable_safety_checker": true,
"output_format": "png",
"acceleration": "none"
}
}'import requests
import json
url = "https://api.netmind.ai/v1/generation"
payload = json.dumps({
"model": "hkchengrex/MMAudio",
"config": {
"prompt": "The summer wind blows over the willow branches.",
"duration": 100
}
})
headers = {
'Authorization': 'Bearer {{API_TOKEN}}',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
Get generation
List generations
Delete generation
Last updated