Ai Instagram Model API guide
Ai Instagram Model API: Restyle a reference photo using a visual preset and an optional scene prompt. Choose from ten documented style values.
Model overview
Restyle a reference photo using a visual preset and an optional scene prompt. Choose from ten documented style values.
API integration
| Documentation | Value |
|---|---|
| API invocation identifier | ai-instagram-model |
| Integration | Async task API |
Use this invocation identifier in API requests. Check your authorized model catalog for access. Follow the Quickstart for your first complete call.
Request parameters
Studio presets describe the form setup, not guaranteed server defaults. Send preset values explicitly to reproduce them.
The URL of the input image.
Media types: image/*.
Text prompt describing the desired Instagram-style photo.
Style preset for the generated photo.
Allowed values (10)
Allowed values: "influencer", "street_fashion", "beach", "fitness", "luxury", "casual_chic", "night_glam", "anime", "cyberpunk", "vintage_retro".
Studio preset: "influencer".
Standard quantity control field. The allowed range for this item is 1-15.
Repeats MuseSpark execution within one logical task. This is separate from a model-native output count.
Value: minimum 1; maximum 15.
Studio preset: 1.
No parameters match. Clear the search or reset the filters.
Model rules
Parameter meaning
- Use prompt to describe the intended lighting, setting, clothing, and mood. The style preset supplies a broader aesthetic for the image.
Reference media
- A clear portrait with the face and body visible provides a stronger reference for photo restyling.
- The public contract marks prompt optional. Supplying a descriptive prompt gives the example an explicit creative direction.
Integration notes
Use the following field formats and values in MuseSpark requests.
prompt: prompt is optional in this item contract; these examples include it to state the intended result.
batch_size controls repeated MuseSpark executions. Output grouping, sequential image generation, and video shot count are separate concepts.
Request examples
Replace example media URLs and YOUR_... input identifiers with your own valid resources. Examples are checked against the exported item schema; media access and paid execution are separate runtime checks.
Set MUSESPARK_API_KEY and a stable MUSESPARK_REQUEST_ID before submitting. Preserve the request ID for retries of the same request and use a new ID for new work. Python examples use requests; JavaScript examples use Node.js 20 or later. The standalone Quickstart includes task polling and recovery.
Create a street-fashion portrait
curl --fail-with-body 'https://api.musespark.ai/api/v1/openapi/task' \
-H "Authorization: Bearer $MUSESPARK_API_KEY" \
-H "X-Idempotency-Key: $MUSESPARK_REQUEST_ID" \
-H 'Content-Type: application/json' \
-d '{
"item_key": "ai-instagram-model",
"parameters": {
"style": "street_fashion",
"batch_size": 1,
"image": "https://example.com/adult-portrait.jpg",
"prompt": "An editorial street portrait beside a brick wall in soft afternoon light, wearing a navy jacket."
}
}'Parameters used: style · batch_size · image · prompt.
Output
The output is a restyled photo guided by the input image, chosen preset, and any supplied prompt.
Creation returns a task ID inside data. Poll that task until completion, then save data.result.output_urls and any data.result.batch_results. See the task lifecycle for terminal states, result retention, and errors.
Troubleshooting
A style name is rejected. Use the exact enum value, such as street_fashion or vintage_retro, rather than its display label.
The result misses the intended setting. Describe the setting and lighting in prompt and choose a compatible style preset.
For rejected inputs, check the field type, accepted values, and conditional requirements in Request parameters and Model rules. Correct the affected fields before submitting again.
If creation times out, preserve the request identity and any known task ID. Follow Errors, timeouts and retries before submitting again.
Related docs
The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.