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
ModelDescription
gpt-5Latest flagship model
gpt-4oMultimodal, versatile
gpt-4o-miniFast and cost-effective
gpt-4.1Coding specialist, 1M context
o3Advanced reasoning model
o4-miniFast reasoning model

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}