---
title: "TIR Token Factory FAQ"
description: "Short answers about TIR Token Factory, from models and API keys to billing and data retention."
content_type: "faq"
product: "token-factory"
platform: "TIR"
url: "/tir/token-factory/faq/"
topic: ["faq"]
---

# TIR Token Factory FAQ

<!-- cspell:ignore BlazeInfer blazeinfer -->

For help with a specific message, see [Troubleshooting TIR Token
Factory](/tir/token-factory/troubleshooting/token-factory/).

## Getting started

### 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](/tir/token-factory/get-started/).

### 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](/tir/model-endpoints/) runs a model you deploy.

### 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](https://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?

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](/tir/token-factory/how-to/call-a-model-with-the-openai-sdk/).

### 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](/tir/token-factory/how-to/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](/tir/token-factory/how-to/call-a-model-with-the-openai-sdk/).

### 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](/tir/tir-iam/how-to/manage-project-members-and-policies/).

## Models

### 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](/tir/token-factory/how-to/choose-a-model/).

### 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](/tir/token-factory/how-to/choose-a-model/).

### 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](/tir/token-factory/troubleshooting/token-factory/#404-the-requested-model-is-not-currently-available).

### 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](/tir/token-factory/concepts/tokens-and-billing/#zero-data-retention).

## API keys

### 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](/tir/token-factory/how-to/create-an-api-key/).

### 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](/tir/token-factory/how-to/create-an-api-key/).

### 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](/tir/token-factory/how-to/create-an-api-key/).

### 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](/tir/token-factory/how-to/call-a-model-with-the-openai-sdk/#keep-the-key-out-of-your-code).

### 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](/tir/token-factory/how-to/create-an-api-key/).

### 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](/tir/token-factory/how-to/create-an-api-key/).

### 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](/tir/token-factory/how-to/block-unblock-or-revoke-an-api-key/).

### 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](/tir/projects/how-to/update-or-delete-a-project/).

## Billing

### 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](/tir/token-factory/concepts/tokens-and-billing/).

### 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](/tir/token-factory/concepts/tokens-and-billing/#how-the-prompt-cache-lowers-the-cost).

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:

```python
response = client.chat.completions.create(
    model=model,
    messages=messages,
    extra_headers={"x-session-id": conversation_id},
)
```

### Where can I see the prices?

In Token Factory's model list and on each model's page. See [Choose a
model](/tir/token-factory/how-to/choose-a-model/#compare-models-on-the-list).

### Do API keys cost anything?

No. Your project pays only for the tokens its requests use. See [Tokens and
billing](/tir/token-factory/concepts/tokens-and-billing/).

### 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](/tir/tir-billing/).

### 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](/tir/token-factory/how-to/monitor-usage-and-cost/#see-what-you-are-billed).

### 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](/tir/tir-billing/troubleshooting/tir-billing/#your-account-has-been-suspended).
