쿠키를 사용합니다. 쿠키와 브라우저 저장소는 로그인 상태를 유지하고 환경설정을 기억합니다. 동의하시면 사이트 이용 방식도 측정합니다. 언제든지 할 수 있습니다. 자세한 내용은 쿠키 정책을 참고하세요.
- 필수세션, 보안, 환경설정. 사이트 작동에 필요합니다.항상 켜짐
쿠키를 사용합니다. 쿠키와 브라우저 저장소는 로그인 상태를 유지하고 환경설정을 기억합니다. 동의하시면 사이트 이용 방식도 측정합니다. 언제든지 할 수 있습니다. 자세한 내용은 쿠키 정책을 참고하세요.
baidu/ernie-5.5-flash-preview:free위 가격으로 잔액에서 차감됩니다.
ERNIE-5.5-Flash-Preview는 Baidu의 텍스트 파운데이션 모델로, ERNIE 제품군의 일부입니다. 이 계열의 최신 파운데이션 모델이며, 코딩, 에이전트 기능, 지식 작업, 심층 연구 전반에서 개선되었습니다. 이 모델은 총 2,800억 개의 파라미터를 가진 것으로 표시됩니다. api14에서는 모델 id baidu/ernie-5.5-flash-preview:free로 무료 변형으로 제공됩니다.
이 모델은 텍스트 입력을 받아 텍스트 출력을 생성하므로, 멀티모달 모델이 아니라 범용 언어 모델로 동작합니다. 컨텍스트 윈도우는 1,024,000 토큰이고, 최대 출력은 921,600 토큰입니다. 이렇게 매우 큰 입력 윈도우와 매우 큰 출력 허용량의 조합은 긴 문서, 코드베이스, 또는 대화 기록을 단일 요청으로 보내고도 상당한 응답을 받을 수 있다는 뜻입니다. 추론은 이 모델의 기능 집합에 포함됩니다. 지원되는 파라미터에는 include_reasoning, reasoning, reasoning_effort가 있으며, 이를 통해 모델이 추론을 수행할지 여부와 수행량을 제어할 수 있습니다.
명시된 강점은 여러 실용적 용도를 가리킵니다. 코딩 작업은 코드 생성, 코드 리뷰, 또는 전체를 읽어야 하는 대규모 저장소 작업 등 어떤 형태든 자연스럽게 맞습니다. 에이전트 기능은 모델이 어떤 함수를 호출할지 결정하고 단계를 연결하는 도구 호출 워크플로에 적합하게 만듭니다. 지식 작업은 긴 문서의 초안 작성, 요약, 변환을 포괄합니다. 심층 연구는 많은 출처나 대량의 텍스트를 모아 답변 전에 추론해야 하는 작업에 적합합니다. 큰 컨텍스트 윈도우 덕분에 이러한 작업의 문서 중심 및 저장소 중심 버전을 한 번에 수행할 수 있습니다.
api14의 OpenAI 호환 API를 통해 모델 id baidu/ernie-5.5-flash-preview:free로 이 모델을 호출합니다. 인터페이스가 OpenAI 형식을 따르므로, 기존 OpenAI 클라이언트 라이브러리와 요청 형태는 base URL과 모델 id만 변경하면 작동합니다. 지원되는 요청 파라미터는 include_reasoning, max_tokens, reasoning, reasoning_effort, response_format, structured_outputs, temperature, tool_choice, tools, top_p입니다. structured_outputs와 response_format은 응답이 스키마를 준수해야 할 때 유용하고, tools와 tool_choice는 함수 호출을 담당합니다. temperature와 top_p는 샘플링을 제어하고, max_tokens는 생성 길이를 제한합니다.
작업에 추론 제어, 도구 호출, 또는 이 정도 크기의 컨텍스트 윈도우가 필요하지 않다면, 더 작거나 단순한 텍스트 모델이 더 적합하고 실행 비용도 더 저렴할 수 있습니다. 이 모델은 텍스트 전용이므로 이미지, 오디오 또는 기타 입력 유형과 관련된 것은 허용 범위를 벗어납니다. 또한 프리뷰 릴리스이므로, 프로덕션에서 모델의 장기적 안정성이 필요하다면 이 점을 고려할 가치가 있습니다.
카탈로그 데이터를 바탕으로 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": "baidu/ernie-5.5-flash-preview:free",
"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="baidu/ernie-5.5-flash-preview:free",
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": "baidu/ernie-5.5-flash-preview:free",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
}'
package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
)
func main() {
body := []byte(`{
"model": "baidu/ernie-5.5-flash-preview:free",
"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" => "baidu/ernie-5.5-flash-preview:free",
"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": "baidu/ernie-5.5-flash-preview:free",
"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: "baidu/ernie-5.5-flash-preview:free",
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": "baidu/ernie-5.5-flash-preview:free",
"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": "baidu/ernie-5.5-flash-preview:free",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
}))
.send()
.await?
.text()
.await?;
println!("{res}");
Ok(())
}
include_reasoningmax_tokensreasoningreasoning_effortresponse_formatstructured_outputstemperaturetool_choicetoolstop_p이 커뮤니티에는 아직 토픽이 없습니다. Baidu: ERNIE-5.5-Flash-Preview (free)에 대한 첫 토픽을 열어 보세요.