Cookieを使用しています. Cookieとブラウザストレージは、ログイン状態の維持と設定の保存に使われます。許可いただいた場合は、サイトの利用状況も計測します。はいつでも変更できます。詳しくはCookieポリシーをご覧ください。
- 必須セッション、セキュリティ、設定。サイトの動作に必要です。常にオン
Cookieを使用しています. Cookieとブラウザストレージは、ログイン状態の維持と設定の保存に使われます。許可いただいた場合は、サイトの利用状況も計測します。はいつでも変更できます。詳しくはCookieポリシーをご覧ください。
meta/muse-ember上記の料金で残高から差し引かれます。
設定
Meta: Muse Ember は Meta のテキストモデルで、同社の Muse ラインの中で最小かつ最も効率的なモデルとして位置づけられています。複雑な推論の実行と、エージェントが一日中繰り返す作業、たとえばツール呼び出し、コーディングエージェントのサブタスク、ルーティングのために作られています。テキストカテゴリに属するため出力はテキストであり、エージェントループの背後に置いて頻繁で反復的な呼び出しを処理できる、有能な推論モデルを必要とする開発者を対象としています。
このモデルはテキスト、画像、動画、ファイル、音声を入力として受け取り、テキストを返します。コンテキストウィンドウは 1,048,576 トークンで、最大出力は 943,718 トークンです。この非常に大きなコンテキストと大きな出力予算の組み合わせにより、長い文書、指示と一緒のメディア、または拡張されたエージェントのトランスクリプトを投入しても、かなりの応答のための余地を残せます。サポートされるリクエストパラメータには include_reasoning、reasoning、reasoning_effort、max_tokens、temperature、top_p、top_k、repetition_penalty、response_format、structured_outputs、tools、tool_choice があります。
これらの機能はいくつかの実用的なパターンを示しています。ツール呼び出しと tool_choice により、モデルがどの関数をどの引数で呼び出すかを決めるエージェントワークフローに自然に適合します。構造化出力と response_format は、より大きなシステム内のルーティング判断、抽出、分類ステップなど、機械可読な結果を必要とするパイプラインに適しています。推論制御により、サブタスクがどれだけの熟考を必要とするかに応じて推論の労力を上げ下げでき、include_reasoning を使えば必要なときに推論を表に出せます。画像、動画、ファイル、音声を入力として受け取るため、たとえば文書と付随する画像や音声クリップを一緒に確認するなど、プロンプトに混合メディアが含まれるタスクも処理でき、その場合もテキストを返します。
Muse Ember は、モデル ID "meta/muse-ember" を使用して api14 の OpenAI 互換 API を通じて呼び出します。インターフェースが OpenAI 形式に従っているため、既存の OpenAI クライアントを api14 に向け、その ID を model フィールドに渡すことができます。上記のリクエストパラメータがサポートされているので、サンプリング制御のために max_tokens、temperature、top_p、top_k、repetition_penalty を設定し、関数呼び出しのために tools と tool_choice を使用し、制約された出力が必要なときに response_format と structured_outputs を使用し、推論の動作を管理するために reasoning、reasoning_effort、include_reasoning を使用できます。
注意すべき点として、Muse Ember はそのラインの中で最小のモデルであるため、最大のものではなく効率重視の選択肢です。出力はテキストのみなので、別の出力モダリティが必要な場合、このモデルはそれを提供しません。ワークロードに推論重視のエージェントステップ、ツール呼び出し、長いコンテキストの入力が含まれない場合は、より単純なモデルで十分かもしれません。
カタログデータをもとに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": "meta/muse-ember",
"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="meta/muse-ember",
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": "meta/muse-ember",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
}'
package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
)
func main() {
body := []byte(`{
"model": "meta/muse-ember",
"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" => "meta/muse-ember",
"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": "meta/muse-ember",
"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: "meta/muse-ember",
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": "meta/muse-ember",
"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": "meta/muse-ember",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
}))
.send()
.await?
.text()
.await?;
println!("{res}");
Ok(())
}
このコミュニティにはまだトピックがありません。Meta: Muse Emberについて最初のトピックを立てましょう。
include_reasoningmax_tokensreasoningreasoning_effortrepetition_penaltyresponse_formatseedstructured_outputstemperaturetool_choicetoolstop_ktop_p