> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# GPT 4o text generation model (openai/gpt-4o): where to run it and pricing

> GPT 4o is a text generation model from OpenAI (inc. Sora). Run it with Comfy Router; templates, files, nodes, and pricing.

Model ID: openai/gpt-4o
Provider: openai
Product: router
Input: text, image
Output: text
License: closed

GPT 4o is a text generation model from OpenAI (inc. Sora). It takes text and image as input and produces text. It has no open weights. It runs on OpenAI (inc. Sora)'s servers, so you use it through Comfy Router.

## Where you can run it

| Where | Page | Use it when |
| - | - | - |
| Comfy Router (API) | [GPT 4o with Comfy Router](https://docs.comfy.org/development/comfy-router/models/openai/gpt-4o/code.md) | You call `openai/gpt-4o` from your own code with `COMFY_API_KEY` |

## Call it with Comfy Router

* `POST https://api.comfy.org/v2/models/openai/gpt-4o`. Live request schema: `GET /v2/models/openai/gpt-4o/openapi.json`.

## Pricing

Comfy Router charges the model maker's list price, billed from your workspace credits (211 credits = \$1 USD). Current per-model prices are on [router.comfy.org](https://router.comfy.org).

* Price a call before you run it: `POST https://api.comfy.org/v2/models/openai/gpt-4o/estimate`.
* Billing facts, such as whether a refused request is charged: the `billing` field from `GET https://api.comfy.org/v2/models/openai/gpt-4o`.

See [Comfy Router pricing](https://docs.comfy.org/development/comfy-router/pricing.md) and [Billing](https://docs.comfy.org/development/comfy-router/billing.md#model-billing-facts).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.