Skip to content

Copilot / gpt-5-codex "model gpt-5-codex is not accessible via the /chat/completions endpoint" #2758

@andrewneilson

Description

@andrewneilson
AI_APICallError: model gpt-5-codex is not accessible via the /chat/completions endpoint

gpt-5-codex from copilot was added about 8 hours ago sst/models.dev#222

But trying to use it in opencode 0.11.3 I get the above error

I do see it available in my org

Image

When I check the available models from the copilot api it doesn't look available, but the fact that it was added makes me wonder if I'm missing something:

gpt-4.1
gpt-5-mini
gpt-5
gpt-3.5-turbo
gpt-3.5-turbo-0613
gpt-4o-mini
gpt-4o-mini-2024-07-18
gpt-4
gpt-4-0613
gpt-4-0125-preview
gpt-4o
gpt-4o-2024-11-20
gpt-4o-2024-05-13
gpt-4-o-preview
gpt-4o-2024-08-06
o3-mini
o3-mini-2025-01-31
o3-mini-paygo
text-embedding-ada-002
text-embedding-3-small
text-embedding-3-small-inference
claude-3.5-sonnet
claude-3.7-sonnet
claude-3.7-sonnet-thought
claude-sonnet-4
claude-opus-4
claude-opus-41
gemini-2.0-flash-001
gemini-2.5-pro
o3
o3-2025-04-16
o4-mini
o4-mini-2025-04-16
gpt-4.1-2025-04-14

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions