Appearance
Token Factory
Use Token Factory to generate text, images, or videos from your application. Choose a model, send a prompt, and receive the result through the API. You can use these APIs without setting up a model server.
Choose an API
Choose the service you want to connect to.
| API | Request | Result |
|---|---|---|
| BytePlus | A prompt, with optional reference media | A task ID you use to check when the video is ready |
| vLLM | Chat messages, with images for supported models | Text in an OpenAI-compatible response |
| Image | A prompt, with source images for supported models | A job ID you use to check when the image is ready |
Get started
- Create a Token Factory key in API keys.
- Choose a model from the BytePlus, vLLM, or Image guide.
- Send a request with the key in the
Authorization: Bearer <api-key>header. - For text, read the response from that request. For images and videos, check the task's status until it succeeds, then download the result.
Other products
Use Virtual Machine for a Linux environment with root access, or Kubernetes to run your own containers. Use Comfy for a hosted image workflow in the console.