Cookieを使用しています. Cookieとブラウザストレージは、ログイン状態の維持と設定の保存に使われます。許可いただいた場合は、サイトの利用状況も計測します。はいつでも変更できます。詳しくはCookieポリシーをご覧ください。
- 必須セッション、セキュリティ、設定。サイトの動作に必要です。常にオン
Cookieを使用しています. Cookieとブラウザストレージは、ログイン状態の維持と設定の保存に使われます。許可いただいた場合は、サイトの利用状況も計測します。はいつでも変更できます。詳しくはCookieポリシーをご覧ください。
particle-ai/particle-1上記の料金で残高から差し引かれます。
設定
Particle AI: Particle-1 は Particle AI のテキストに焦点を当てたモデルです。トークン効率の良いエージェント型コーディングモデルで、DeepSeek V4.1 Flash でポストトレーニングされています。プロバイダーは、ターミナルワークフロー、コードベースの変更、データタスクなどのソフトウェアエンジニアリング作業に適していると説明しています。これはテキストカテゴリに属し、汎用チャットアシスタントではなく、コーディング用のエージェント型モデルを求める開発者を対象としています。
このモデルは入力としてテキストと画像を受け取り、テキストを返します。コンテキストウィンドウは 1,048,576 トークンで、最大出力は 131,072 トークンです。この非常に大きな入力ウィンドウと大きな出力バジェットの組み合わせにより、長いファイル、ログ、複数ファイルのコンテキストを投入しても、相当量の生成出力の余地を残すことができます。テキストと一緒に画像も受け取れるため、スクリーンショットや図と書面による指示を含む入力も扱えます。
これらの機能はソフトウェアエンジニアリングにおける実用的な用途を示しています。モデルはコマンド出力と指示をテキストとして受け取り、次のステップやコマンドを生成できるため、ターミナルワークフローは自然に適合します。コードベースの変更ももう一つの適合例です。大きなコンテキストウィンドウがあれば、リポジトリの広い部分を提供して、編集、リファクタリング、新しいコードを依頼できます。プロバイダーが説明するデータタスクも対象範囲です。画像入力は、エラー、UI、図のスクリーンショットをコードやテキストと一緒に解釈する必要があるケースにこれを拡張します。reasoning パラメータと tool パラメータにより、モデルがツールを呼び出し、その結果から続行するエージェントループで使用できます。
Particle-1 は、モデル ID "particle-ai/particle-1" を使用して api14 の OpenAI 互換 API を通じて呼び出します。サポートされるリクエストパラメータは、frequency_penalty、include_reasoning、logprobs、max_tokens、min_p、presence_penalty、reasoning、reasoning_effort、repetition_penalty、response_format、seed、stop、structured_outputs、temperature、tool_choice、tools、top_k、top_logprobs、top_p です。実際には、サンプリング制御 (temperature、top_p、top_k、min_p)、ペナルティ (frequency_penalty、presence_penalty、repetition_penalty)、出力制限 (max_tokens)、決定性 (seed)、停止 (stop)、構造化出力 (response_format、structured_outputs)、ツール使用 (tools、tool_choice)、reasoning 制御 (reasoning、reasoning_effort、include_reasoning) をカバーします。対数確率オプション (logprobs、top_logprobs) も利用できます。
ワークロードがコーディングやエージェント型でない場合、またはテキスト以外の出力モダリティが必要な場合は、別のモデルの方が適している可能性があります。Particle-1 はテキストのみを返すため、画像や音声の生成は対象外です。また、ソフトウェアエンジニアリング作業に特化して位置付けられているため、その領域外のタスクは汎用テキストモデルでも同様に処理できる場合があります。
カタログデータをもとに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": "particle-ai/particle-1",
"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="particle-ai/particle-1",
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": "particle-ai/particle-1",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
}'
package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
)
func main() {
body := []byte(`{
"model": "particle-ai/particle-1",
"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" => "particle-ai/particle-1",
"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": "particle-ai/particle-1",
"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: "particle-ai/particle-1",
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": "particle-ai/particle-1",
"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": "particle-ai/particle-1",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
}))
.send()
.await?
.text()
.await?;
println!("{res}");
Ok(())
}
このコミュニティにはまだトピックがありません。Particle AI: Particle-1について最初のトピックを立てましょう。
frequency_penaltyinclude_reasoninglogprobsmax_tokensmin_ppresence_penaltyreasoningreasoning_effortrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p