openai-go icon indicating copy to clipboard operation
openai-go copied to clipboard

Getting issue with gpt-5-mini: organization must be verified

Open pankajmyt opened this issue 3 weeks ago • 0 comments

"Your organization must be verified to use the model gpt-5. Please go to: https://platform.openai.com/settings/organization/general and click on Verify Organization. If you just verified, it can take up to 15 minutes for access to propagate."

I have tried verifying organization on openai platform but still getting error for gpt-5, gpt-5-mini. Same code block works for model gpt-4.1.

I am blocked on this, please suggest solution.

I read that streaming output was having an issue, but below code uses non-streaming generation. still get same error

resp, err := r.service.client.Chat.Completions.New(context.Background(), openai.ChatCompletionNewParams{
		Model: r.model,
		ResponseFormat: openai.ChatCompletionNewParamsResponseFormatUnion{
			OfJSONSchema: &openai.ResponseFormatJSONSchemaParam{
				JSONSchema: r.schema,
			},
		},
		Temperature: openai.Float(r.temperature),
		TopP:        openai.Float(r.topP),
		Messages: []openai.ChatCompletionMessageParamUnion{
			openai.SystemMessage(r.systemInstruction),
			openai.UserMessage(r.userInstruction),
		},
		ServiceTier: r.serviceTier,
	}, option.WithMaxRetries(r.retries))

pankajmyt avatar Nov 20 '25 07:11 pankajmyt