AI Prosumer
EN
openai/gpt-5.4

GPT-5.4 is OpenAI’s latest frontier model, unifying the Codex and GPT lines into a single system. It features a 1M+ token context window (922K input, 128K output) with support for text and image inputs, enabling high-context reasoning, coding, and multimodal analysis within the same workflow. The model delivers improved performance in coding, document understanding, tool use, and instruction following. It is designed as a strong default for both general-purpose tasks and software engineering, capable of generating production-quality code, synthesizing information across multiple sources, and executing complex multi-step workflows with fewer iterations and greater token efficiency.

Input → Output
Text, Image Text
Input / Output · per 1M tokens
€2.21 / €13.30
Context window
1,050,000 tokens
Maximum output
128,000 tokens
License: proprietary

From model to application

Quick Start

API reference
  1. Get your API key

    Create a key in the ShareAI Console, then save it as an environment variable on your server.

    Create API key
    Environment variable
    export SHAREAI_API_KEY="your-api-key"
  2. Choose your endpoint

    Send a POST request with your API key in the Authorization header.

    POSThttps://api.shareai.now/api/v1/chat/completions
  3. Make your first request

    The request below uses your selected tag. Run it on your server to keep your API key private.

    cURL
    curl --request POST 'https://api.shareai.now/api/v1/chat/completions' \
      --header "Authorization: Bearer ${SHAREAI_API_KEY}" \
      --header 'Content-Type: application/json' \
      --data-raw '{
      "model": "openai/gpt-5.4",
      "messages": [
        {
          "role": "user",
          "content": "Hello!"
        }
      ],
      "stream": false
    }'
    Python
    import json
    import os
    import urllib.request
    
    payload = json.loads("{\n  \"model\": \"openai/gpt-5.4\",\n  \"messages\": [\n    {\n      \"role\": \"user\",\n      \"content\": \"Hello!\"\n    }\n  ],\n  \"stream\": false\n}")
    request = urllib.request.Request("https://api.shareai.now/api/v1/chat/completions",
        data=json.dumps(payload).encode(),
        headers={
            "Authorization": f"Bearer {os.environ['SHAREAI_API_KEY']}",
            "Content-Type": "application/json",
        },
        method="POST",
    )
    with urllib.request.urlopen(request) as response:
        print(json.load(response))
    TypeScript
    const response = await fetch("https://api.shareai.now/api/v1/chat/completions", {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.SHAREAI_API_KEY}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "model": "openai/gpt-5.4",
        "messages": [
          {
            "role": "user",
            "content": "Hello!"
          }
        ],
        "stream": false
      }),
    });
    if (!response.ok) throw new Error(await response.text());
    console.log(await response.json());

Pricing

EUR · per 1M tokens

ShareAI credits EUR

Input
≤271,999€2.21/M tokens
>271,999€4.45/M tokens
Output
≤271,999€13.30/M tokens
>271,999€19.75/M tokens
Cache read
≤271,999€0.30/M tokens
>271,999€0.43/M tokens
Cache write
≤271,999€2.21/M tokens
>271,999€4.45/M tokens

Ranges use each meter’s token count. Its selected rate applies to all tokens in that meter.

Cache write follows the input rate. Cached tokens are counted once.

A little more detail

Frequently asked questions

What is GPT-5.4?

GPT-5.4 is OpenAI’s latest frontier model, unifying the Codex and GPT lines into a single system. It features a 1M+ token context window (922K input, 128K output) with support for text and image inputs, enabling high-context reasoning, coding, and multimodal analysis within the same workflow. The model delivers improved performance in coding, document understanding, tool use, and instruction following. It is designed as a strong default for both general-purpose tasks and software engineering, capable of generating production-quality code, synthesizing information across multiple sources, and executing complex multi-step workflows with fewer iterations and greater token efficiency.

How much does GPT-5.4 cost?

Published ShareAI credits rates start at €2.21 for input and €13.30 for output per million tokens. Rates depend on the selected tag, pricing plan and token range. See Pricing above for cache rates and all published tiers.

What inputs and outputs does GPT-5.4 support?

Inputs: Text, Image. Outputs: Text. These capabilities apply to the selected model tag. Check the endpoint documentation for supported request formats.

What is the context length of GPT-5.4?

This tag has a context window of 1,050,000 tokens. Context size and pricing thresholds are separate. Request limits can be lower for a particular deployment. Maximum output: 128,000 tokens.

Does GPT-5.4 support tool calling and structured outputs?

Tool calling: Supported. Structured outputs: Supported.

How do I use GPT-5.4 with ShareAI?

Create an API key in the ShareAI Console, choose a model tag, and send an authenticated request to the endpoint in Quick Start. Your key must have access to the chosen model. Keep your key on your server.