For help with a specific message, see Troubleshooting TIR Token Factory.
Getting started
Section titled “Getting started”Where do I find Token Factory in TIR?
Section titled “Where do I find Token Factory in TIR?”Open a project, and in the side menu, under INFERENCE, select Token Factory. It opens on the list of models you can call. See Get started with TIR Token Factory.
When should I deploy my own model endpoint instead?
Section titled “When should I deploy my own model endpoint instead?”When you need a model that Token Factory does not offer, or your own copy of a model on workers you choose. Token Factory runs its models for you and bills only tokens, while Model Endpoints runs a model you deploy.
What is BlazeInfer, and how does it relate to Token Factory?
Section titled “What is BlazeInfer, and how does it relate to Token Factory?”Token Factory is powered by BlazeInfer, E2E’s inference platform, and runs on E2E’s own infrastructure in Delhi and Chennai. BlazeInfer also has its own site, blazeinfer.ai, with a separate console, sign-up, credits and API keys. In Token Factory you create the API keys in a TIR project, and TIR bills the usage to that project. Use Token Factory when you work in TIR and want your keys, usage and billing next to your other TIR resources.
Does my existing OpenAI code work with Token Factory?
Section titled “Does my existing OpenAI code work with Token Factory?”Yes. Change the base URL to https://blaze.e2enetworks.net/v1, the API key to a Token Factory API
key, and the model to a Token Factory model ID. See Call a model with the OpenAI
SDK.
I used GenAI API. How do I move to Token Factory?
Section titled “I used GenAI API. How do I move to Token Factory?”GenAI API is no longer in TIR. To move your code to Token Factory, create an API key in your project, then change three things:
- The base URL, to
https://blaze.e2enetworks.net/v1. - The API key, from your Personal Access Token to the new Token Factory key.
- The model name, to the full model ID from Token Factory’s model list, such as
google/gemma-4-31b-it.
Every model shares that one base URL, and the model ID in each request decides which model answers. See Call a model with the OpenAI SDK.
Which permissions do I need?
Section titled “Which permissions do I need?”Token Factory has its own permission in a project, with Read, Create, Update, and Delete access. Read opens the model list, Analytics, and API Keys. Create lets you create API keys, Update lets you block and unblock them, and Delete lets you revoke them. Without Create access, a model’s page shows an API Keys link in place of Create API key. See Manage project members and policies.
Models
Section titled “Models”How do I pick a model?
Section titled “How do I pick a model?”Compare context window, maximum output, and price in the model list, then open a model’s page to see whether it supports tools, JSON output, images, and reasoning. See Choose a model.
Which model ID do I send?
Section titled “Which model ID do I send?”The full ID shown with the model’s name in the model list and on its page, including the creator
before the slash, such as google/gemma-4-31b-it. See Choose a
model.
Can a model be removed from Token Factory?
Section titled “Can a model be removed from Token Factory?”Yes. A model can be retired from the catalog, and its page then no longer opens. Requests that name it return a 404 error; see Troubleshooting TIR Token Factory.
Are my prompts and outputs stored?
Section titled “Are my prompts and outputs stored?”No. Every Token Factory model has zero data retention: your prompts and the model’s outputs are not stored. See Tokens and billing.
API keys
Section titled “API keys”Do I need a separate key for each model?
Section titled “Do I need a separate key for each model?”No. One key works with every model in Token Factory, and the model ID in each request decides which model answers. See Create an API key.
Can I use a Personal Access Token instead of an API key?
Section titled “Can I use a Personal Access Token instead of an API key?”No. Every request needs a Token Factory API key; a Personal Access Token does not authenticate a model request. See Create an API key.
How many API keys can a project have?
Section titled “How many API keys can a project have?”Up to 25 active API keys. Revoke a key you no longer use to make room for a new one. See Create an API key.
Should I put my API key in a browser or a mobile app?
Section titled “Should I put my API key in a browser or a mobile app?”No. Keep your API key on your own server and call Token Factory from there. A key in a web page or in an app on your users’ devices can be read by anyone who uses it. See Call a model with the OpenAI SDK.
I lost my API key. Can I see it again?
Section titled “I lost my API key. Can I see it again?”No. TIR shows a key once, when you create it, and does not keep a copy. Create a new key, put it in your code, then revoke the lost one. See Create an API key.
Can I rename a key or change its expiry?
Section titled “Can I rename a key or change its expiry?”No. A key’s name and expiry are fixed when you create it. Create a new key with the name and expiry you want, then revoke the old one. See Create an API key.
What is the difference between blocking and revoking a key?
Section titled “What is the difference between blocking and revoking a key?”Blocking stops a key until you unblock it, and the key is kept. Revoking stops it for good and cannot be undone. See Block, unblock, or revoke an API key.
What happens to my keys when I delete a project?
Section titled “What happens to my keys when I delete a project?”Deleting a project stops all of its Token Factory API keys at once and revokes them. See Update or delete a project.
Billing
Section titled “Billing”How is Token Factory billed?
Section titled “How is Token Factory billed?”By tokens. Each model has a price per million input tokens, cached input tokens, and output tokens, in the currency of the account that owns the project, and there is no fixed or hourly charge. See Tokens and billing.
Do I need to do anything to use the prompt cache?
Section titled “Do I need to do anything to use the prompt cache?”No. Prompt caching is on for every request, with nothing to set up. When a request repeats the opening of an earlier one, that part is billed at the cached input price; see Tokens and billing.
In a long conversation, most of all one that sends images, you can also send the optional
x-session-id header with the same value on every turn. Token Factory then sends the whole
conversation to the same copy of the model, which helps the cache. Use a value that stays the same
for one conversation and differs between conversations, such as a UUID. In Python, pass it with
each call:
response = client.chat.completions.create( model=model, messages=messages, extra_headers={"x-session-id": conversation_id},)Where can I see the prices?
Section titled “Where can I see the prices?”In Token Factory’s model list and on each model’s page. See Choose a model.
Do API keys cost anything?
Section titled “Do API keys cost anything?”No. Your project pays only for the tokens its requests use. See Tokens and billing.
Do I need credit to create an API key?
Section titled “Do I need credit to create an API key?”Yes, on a prepaid account: you need a credit balance above zero to create an API key. To add credit, see Billing and Usage.
Where do I see what I have been billed?
Section titled “Where do I see what I have been billed?”In Project Settings, open Resource Usage and choose Token Factory in Resource Name. In Billing & Usage, open Account Usage and choose Token Factory Usage in Resources. A model’s Metrics also shows the cost of its tokens at your project’s prices. See Monitor usage and cost.
What happens to my keys if my account is suspended?
Section titled “What happens to my keys if my account is suspended?”Requests with your projects’ Token Factory keys are refused while the account is suspended, and the keys work again when the suspension is lifted. See Troubleshooting Billing and Usage.
Was this page helpful?