TheFluxTrain

Introduction

Use TheFluxTrain from your own apps, scripts, and AI tools.

TheFluxTrain gives you hosted APIs so you can generate images, video, audio, and text from your own products, workflows, or automations. Everything runs on our servers — you call the API over HTTPS; you do not download or run TheFluxTrain code on your machine.

Base URL: https://api.thefluxtrain.com/api/v1

Authenticate with an API key in the x-api-key header on every request. See Authentication.

What you can integrate

  • API — create media and run LLM tasks from any language or platform (Node, Python, Zapier, your backend, and so on).
  • CLI — install thefluxtrain-cli and run API commands from your terminal. See CLI for install and sign-in.

Creative walkthroughs and examples live in Tutorials. This section is reference for setup and API calls.

Response format

Successful JSON responses use this shape:

{
  "data": { },
  "error": null,
  "total_count": null
}

When something fails, data is null and error contains:

{
  "code": "error_code",
  "message": "Human-readable message"
}

Many generation endpoints return a job inside data with an id, status, and url. If status is PENDING, poll Jobs until the asset is ready.

Interactive API docs (OpenAPI)

Explore and try request shapes in your browser:

The OpenAPI file lists every model name and field for video and other advanced options.

API endpoints

AreaDocumentation
Image generationImage generation
LoRALoRA
CartoonCartoon
Product photoProduct photo
Video generationVideo generation
Motion controlMotion control
AudioAudio generation
LLM chatLLM completion
Image descriptionImage description
Job pollingJobs

Common HTTP status codes

CodeMeaning
403Missing or invalid API key
404Resource not found (for example a job ID that is not yours)
500Server error while processing
TopicPage
Create and manage keysAPI keys
How to send your API keyAuthentication
Terminal quick startCLI