Documentation
LoRA image adapter model
Contents
LoRA image adapter model
Deployment appears at https://deepinfra.com/dash/deployments with state "Initializing". Deployment time varies from 5s to 1min depending on LoRA size. Once "Running", model is ready.
Using direct API endpoint:
curl "https://api.deepinfra.com/yourname/yourmodel" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $DEEPINFRA_TOKEN" \
-d '{
"prompt": "A cat in anime style",
"lora_scale": 0.7
}'
Using OpenAI compatible API endpoint:
curl "https://api.deepinfra.com/v1/openai/images/generations" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $DEEPINFRA_TOKEN" \
-d '{
"model": "yourname/yourmodel",
"prompt": "A cat in anime style",
}'