MuseSpark
MuseSpark
Models & toolsTools

Ai Travel Trends API guide

Ai Travel Trends API: Create a travel-style photo from a reference portrait. Select a destination preset and optionally describe the scene.

Model overview

Create a travel-style photo from a reference portrait. Select a destination preset and optionally describe the scene.

API integration

DocumentationValue
API invocation identifierai-travel-trends
IntegrationAsync 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.

imagestringNon-nullRequired

The URL of the input image.

Media types: image/*.

promptstringNon-nullOptional

Text prompt describing the desired travel photo.

destinationstringNon-nullOptional

Destination preset for the travel photo. 'auto' picks a random destination.

Allowed values (30)

Allowed values: "auto", "paris", "santorini", "swiss_alps", "iceland", "rome", "london", "amalfi", "barcelona", "norway_fjords", "tokyo", "kyoto", "bali", "maldives", "dubai", "great_wall", "taj_mahal", "angkor_wat", "seoul", "new_york", "machu_picchu", "havana", "grand_canyon", "rio", "safari", "marrakech", "pyramids", "capetown", "sydney", "new_zealand".

Studio preset: "auto".

batch_sizeintegerNon-nullOptional

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

  • Choose a named destination for a specific setting, or auto for a randomly selected destination.
  • Describe the travel scene’s lighting, weather, and composition to guide the result.
  • The public contract marks prompt optional; include it when the destination preset alone does not describe your intended composition.

Integration notes

Use the following field formats and values in MuseSpark requests.

  • prompt: prompt is optional for this item; use it to describe the desired travel scene.

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 Paris travel 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-travel-trends",
  "parameters": {
    "batch_size": 1,
    "destination": "paris",
    "image": "https://example.com/adult-portrait.jpg",
    "prompt": "A natural travel portrait beside the Seine at sunrise, soft golden light and an uncrowded riverside background."
  }
}'

Parameters used: batch_size · destination · image · prompt.

Output

The output is a generated travel-style photo based on the reference portrait and destination choice.

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

The destination changes between requests. Set destination to a named preset instead of auto.

destination

The destination string is rejected. Use the exact enum spelling, such as new_york or swiss_alps.

destination

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.

The public input snapshot was exported on 2026-11-09. Current prices and availability are listed in the model center.