Cookieを使用しています. Cookieとブラウザストレージは、ログイン状態の維持と設定の保存に使われます。許可いただいた場合は、サイトの利用状況も計測します。はいつでも変更できます。詳しくはCookieポリシーをご覧ください。
- 必須セッション、セキュリティ、設定。サイトの動作に必要です。常にオン
Cookieを使用しています. Cookieとブラウザストレージは、ログイン状態の維持と設定の保存に使われます。許可いただいた場合は、サイトの利用状況も計測します。はいつでも変更できます。詳しくはCookieポリシーをご覧ください。
openai/gpt-6.1-terra上記の料金で残高から差し引かれます。
設定
GPT-6.1 Terra は OpenAI のテキストモデルで、GPT-6.1 シリーズの中位のエントリとして位置づけられています。OpenAI はこれを GPT-6.1 Sol の下に位置すると説明しており、ファミリー内で最も負荷の高いワークロードではなく、日常的なエージェント、コーディング、ライティングの作業を対象としています。
このモデルは入力としてテキスト、画像、ファイルを受け取り、テキストを返します。コンテキストウィンドウは 1,050,000 トークン、最大出力は 128,000 トークンなので、非常に大きなドキュメント、コードベース、長い会話履歴を 1 回のリクエストで送信しても、十分な応答の余地を残せます。OpenAI はスクリーンショットの理解に特に優れていると述べており、画像入力は後付けではなく、想定される用途の第一級の要素となっています。
これらの機能は、かなり幅広い実用的用途を示しています。スクリーンショットの理解は、ダッシュボードの読み取り、UI モックアップのレビュー、キャプチャしたアプリケーション状態からの情報抽出といったタスクに適しています。大きなコンテキストウィンドウは、リポジトリ規模のコードレビュー、長いドキュメントの分析、モデルが多くのものを一度に参照する必要がある複数ファイルのリファクタリングに適合します。エージェントワークフローはツール呼び出しと構造化出力の恩恵を受け、ライティング面では長い入力に対する下書き、編集、要約をカバーします。ファイルが直接受け入れられるため、ドキュメントをまずプレーンテキストに前処理することなく渡せます。
このモデルは、モデル id "openai/gpt-6.1-terra" を使用して api14 の OpenAI 互換 API を通じて呼び出します。API は OpenAI 形式に従っているため、既存の OpenAI SDK とクライアントはベース URL とキーを変更するだけで動作します。サポートされているリクエストパラメータは、include_reasoning、max_tokens、reasoning、reasoning_effort、response_format、seed、structured_outputs、tool_choice、tools、verbosity です。実際には、max_tokens で出力長を制御し、reasoning と reasoning_effort でモデルが行う内部推論の量を調整し、response_format と structured_outputs で JSON またはスキーマに準拠した出力を要求し、tools と tool_choice で関数を定義して選択し、seed でサンプリングを再現可能にし、include_reasoning で推論内容を表示し、verbosity で回答の長さと詳細度を調整できます。
長い生成を計画するときは 128,000 トークンの出力上限を念頭に置き、モデルはテキストのみを返すため、別の形式で必要なものはテキストまたは構造化データとして生成する必要がある点に注意してください。作業が十分に単純で、より小さく高速なモデルで足りる場合、または GPT-6.1 シリーズの上位ティアが特に必要な場合は、別のモデルの方が適しているかもしれません。大きな入力とスクリーンショットを伴う日常的なエージェント、コーディング、ライティングのタスクには、GPT-6.1 Terra がラインナップの中間の選択肢です。
カタログデータをもとにAIモデルが作成し、自動翻訳した文章です。表の価格と上限はカタログから直接取得しています。 コンテンツの作り方
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "openai/gpt-6.1-terra",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
from openai import OpenAI
import os
client = OpenAI(
base_url="https://api14.com/api/v1",
api_key=os.environ["API14_API_KEY"],
)
result = client.chat.completions.create(
model="openai/gpt-6.1-terra",
messages=[
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
],
)
print(result.choices[0].message.content)
curl https://api14.com/api/v1/chat/completions \
-H "Authorization: Bearer $API14_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-6.1-terra",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
}'
package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
)
func main() {
body := []byte(`{
"model": "openai/gpt-6.1-terra",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
}`)
req, _ := http.NewRequest("POST", "https://api14.com/api/v1/chat/completions", bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer "+os.Getenv("API14_API_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(string(out))
}
<?php
$ch = curl_init("https://api14.com/api/v1/chat/completions");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("API14_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"model" => "openai/gpt-6.1-terra",
"messages" => [
[
"role" => "user",
"content" => "Explain vector databases in two sentences."
]
]
]),
]);
$response = json_decode(curl_exec($ch), true);
print_r($response);
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String body = """
{
"model": "openai/gpt-6.1-terra",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api14.com/api/v1/chat/completions"))
.header("Authorization", "Bearer " + System.getenv("API14_API_KEY"))
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
using OpenAI;
using OpenAI.Chat;
using System.ClientModel;
var client = new ChatClient(
model: "openai/gpt-6.1-terra",
credential: new ApiKeyCredential(Environment.GetEnvironmentVariable("API14_API_KEY")!),
options: new OpenAIClientOptions { Endpoint = new Uri("https://api14.com/api/v1") });
ChatCompletion completion = client.CompleteChat("Explain vector databases in two sentences.");
Console.WriteLine(completion.Content[0].Text);
require "net/http"
require "json"
uri = URI("https://api14.com/api/v1/chat/completions")
req = Net::HTTP::Post.new(uri, {
"Authorization" => "Bearer #{ENV["API14_API_KEY"]}",
"Content-Type" => "application/json",
})
req.body = {
"model": "openai/gpt-6.1-terra",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
}.to_json
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |h| h.request(req) }
puts JSON.parse(res.body)
// Cargo.toml: reqwest = { version = "0.12", features = ["json"] }, tokio = { version = "1", features = ["full"] }, serde_json = "1"
use serde_json::json;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let key = std::env::var("API14_API_KEY")?;
let res = reqwest::Client::new()
.post("https://api14.com/api/v1/chat/completions")
.bearer_auth(key)
.json(&json!({
"model": "openai/gpt-6.1-terra",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
}))
.send()
.await?
.text()
.await?;
println!("{res}");
Ok(())
}
このコミュニティにはまだトピックがありません。OpenAI: GPT-6.1 Terraについて最初のトピックを立てましょう。
include_reasoningmax_completion_tokensmax_tokensreasoningreasoning_effortresponse_formatseedstructured_outputstool_choicetoolsverbosity