OpenCodex
openrouter

GPT-4 Turbo (OpenRouter)

OpenCodex

GPT-4 Turbo

Harga Input

22.00 /Juta

Harga Output

66.00 /Juta

Tetingkap Konteks

128k

Kategori

Model Luar Negara

Keupayaan

BerkuasaVisi

API Configuration

Base URL

https://opencodex.hk/api/v1

Model ID

openai/gpt-4-turbo

Permulaan Pantas

Copy the code below to quickly integrate into your application

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://opencodex.hk/api/v1",
  apiKey: process.env.OPENCODEX_API_KEY,
});

const response = await client.chat.completions.create({
  model: "openai/gpt-4-turbo",
  messages: [{ role: "user", content: "Hello!" }],
});

console.log(response.choices[0].message.content);

Sedia untuk mencuba GPT-4 Turbo (OpenRouter)?

Mulakan dengan 500 Kredit percuma dan bayar hanya untuk apa yang anda gunakan.