About GPT Image 2
GPT Image 2 is a OpenAI model. On TeamoRouter its model ID is gpt-image-2, and the same TeamoRouter API key works for it and every other model. Setup steps are in the API docs.
- Model ID
gpt-image-2- Provider
- OpenAI
- Official list price
- $0.20 per image
More OpenAI models
Use the GPT Image 2 API
Point the base URL at TeamoRouter and use gpt-image-2 as the model name; nothing else changes. Python example:
from openai import OpenAI
client = OpenAI(
base_url="https://api.teamorouter.vip/v1", # the SDK appends /images/generations automatically
api_key="<TEAMOROUTER_API_KEY>",
)
response = client.images.generate(
model="gpt-image-2",
prompt="An orange cat typing on a keyboard, illustration style",
)
print(response.data[0].b64_json)All parameters: GPT Image 2 API docs.
GPT Image 2 guides
GPT Image 2 FAQ
- What is the GPT Image 2 API model ID?
- The model ID is gpt-image-2. The OpenAI-compatible base URL is https://api.teamorouter.vip/v1.
- How much does the GPT Image 2 API cost?
- The official list price of GPT Image 2 is $0.20 per image. TeamoRouter bills per use with no monthly fee; see the price table on this page for the current discounted price.