curl --request POST \
--url https://api.motion.so/api/motion/sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Create a 20-second launch video."
}
'{
"job_id": "4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"status": "queued",
"status_url": "https://api.motion.so/api/motion/sessions/4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"chat_url": "https://motion.so/agent?chat=4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"engine": "gva",
"effort": "standard",
"template": null
}{
"error": "<string>",
"detail": "<string>",
"message": "<string>",
"error_description": "<string>",
"required_scope": "<string>",
"details": [
{
"code": "<string>",
"path": [
"<string>"
],
"message": "<string>"
}
],
"issues": [
{}
]
}{
"error": "<string>",
"detail": "<string>",
"message": "<string>",
"error_description": "<string>",
"required_scope": "<string>",
"details": [
{
"code": "<string>",
"path": [
"<string>"
],
"message": "<string>"
}
],
"issues": [
{}
]
}{
"error": "insufficient_credits",
"code": "<string>",
"message": "<string>",
"minimum_required_credits": 123,
"current_balance": 123
}{
"error": "engine_access_required",
"message": "Your account does not have access to this engine. Use list_engines or GET /engines to see available engines."
}Deprecated (/sessions)
Create a session
deprecated
Deprecated: use /projects for new integrations. This route remains callable with its existing single-video arguments and response contract. No removal date is scheduled.
POST
/
sessions
curl --request POST \
--url https://api.motion.so/api/motion/sessions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Create a 20-second launch video."
}
'{
"job_id": "4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"status": "queued",
"status_url": "https://api.motion.so/api/motion/sessions/4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"chat_url": "https://motion.so/agent?chat=4f20dcdd-f63b-4898-97d6-2e05c0d37c78",
"engine": "gva",
"effort": "standard",
"template": null
}{
"error": "<string>",
"detail": "<string>",
"message": "<string>",
"error_description": "<string>",
"required_scope": "<string>",
"details": [
{
"code": "<string>",
"path": [
"<string>"
],
"message": "<string>"
}
],
"issues": [
{}
]
}{
"error": "<string>",
"detail": "<string>",
"message": "<string>",
"error_description": "<string>",
"required_scope": "<string>",
"details": [
{
"code": "<string>",
"path": [
"<string>"
],
"message": "<string>"
}
],
"issues": [
{}
]
}{
"error": "insufficient_credits",
"code": "<string>",
"message": "<string>",
"minimum_required_credits": 123,
"current_balance": 123
}{
"error": "engine_access_required",
"message": "Your account does not have access to this engine. Use list_engines or GET /engines to see available engines."
}Authorizations
Headers
Body
application/json
Creates a durable video job owned by the API key user. Requires available Motion credits on that user's account. Credits and auto top-ups are managed at https://motion.so, not through the API.
Response
Job accepted
Was this page helpful?