Skip to content

OpenAI

Use ArtemisKit with OpenAI’s GPT models.

Get your API key from the OpenAI Dashboard.

Terminal window
export OPENAI_API_KEY="sk-..."
name: my-test
provider: openai
model: gpt-5
cases:
- id: example
prompt: "Hello"
expected:
type: contains
values: ["hello"]
mode: any
ModelContextDescription
gpt-5400KLatest flagship model, best overall performance
gpt-5.1400KEnhanced version with improved reasoning
gpt-5.2400KPremium variant with extended capabilities
gpt-5-mini128KFast and cost-effective
gpt-5-nano32KUltra-lightweight for simple tasks
ModelContextDescription
gpt-4.11MExtended context specialist
gpt-4.1-mini256KBalanced performance and cost
gpt-4.1-nano64KLightweight variant
ModelContextDescription
gpt-4o128KMultimodal, versatile
gpt-4o-mini128KFast and highly cost-effective
ModelDescription
o1Advanced reasoning, complex problem solving
o3Balanced reasoning model
o3-miniFast reasoning for simpler tasks
o4-miniLatest fast reasoning model

Note: O-series models use internal “thinking tokens” that are billed as output tokens but not visible in responses. Actual costs may be higher than estimated.

Configure OpenAI in your artemis.config.yaml:

provider: openai
model: gpt-5
providers:
openai:
apiKey: ${OPENAI_API_KEY}
organization: ${OPENAI_ORG_ID} # Optional
timeout: 60000
maxRetries: 2

Override settings in your scenario file:

name: my-test
provider: openai
model: gpt-5
temperature: 0
seed: 42
maxTokens: 1000
cases:
- id: example
prompt: "Hello"
expected:
type: contains
values: ["hello"]
mode: any

If you belong to multiple organizations:

Terminal window
export OPENAI_ORG_ID="org-..."

Or in your config:

providers:
openai:
apiKey: ${OPENAI_API_KEY}
organization: ${OPENAI_ORG_ID}