Proxies of api.openai.com

RegionHost
Londonlondon.cheatgpt.top
Tokoyotokoyo.cheatgpt.top
Singaporesingapore.cheatgpt.top
Parisparis.cheatgpt.top
Seoulseoul.cheatgpt.top
Jakartajakarta.cheatgpt.top
Californiacalifornia.cheatgpt.top
Netherlandsnetherlands.cheatgpt.top
Milanmilan.cheatgpt.top
Utahutah.cheatgpt.top
Lowalowa.cheatgpt.top
Chilechile.cheatgpt.top
Ohioohio.cheatgpt.top

Python

import openai # pip install openai

openai.api_base = "https://tokoyo.cheatgpt.top/v1"

Golang

package main

import (
	openai "github.com/sashabaranov/go-openai"
)
func main() {
	config := openai.DefaultConfig("your key")
	config.BaseURL = "https://tokoyo.cheatgpt.top/v1"
	client := openai.NewClientWithConfig(config)
	print(client)
}

Nodejs


import { Configuration } from "openai";
const configuration = new Configuration({
  apiKey: OPENAI_API_KEY,
  basePath: "https://tokoyo.cheatgpt.top/v1",
});

PHP

// https://github.com/openai-php/client
$yourApiKey = getenv('YOUR_API_KEY');

$client = OpenAI::factory()
    ->withApiKey($yourApiKey)
    ->withOrganization('your-organization') // default: null
    ->withBaseUri('tokoyo.cheatgpt.top/v1') // default: api.openai.com/v1
    ->withHttpClient($client = new \GuzzleHttp\Client([])) // default: HTTP client found using PSR-18 HTTP Client Discovery
    ->withHttpHeader('X-My-Header', 'foo')
    ->withQueryParam('my-param', 'bar')
    ->withStreamHandler(fn (RequestInterface $request): ResponseInterface => $client->send($request, [
        'stream' => true // Allows to provide a custom stream handler for the http client.
    ]))
    ->make();