POST https://api.ticonai.com/v1/messages Anthropic Messages ফরম্যাট অনুসরণ করে। মডেল তালিকা ও ওয়ালেট চ্যাট কমপ্লিশনের মতোই।
মূল ক্ষেত্র
model,max_tokens(আবশ্যক) এবংmessages(userবাassistant)।system,temperature(০–১),top_p,stop_sequences(সর্বোচ্চ ১৬টি),stream।- key
x-api-keyবাAuthorization: Bearerহিসেবে পাঠানো যায়;anthropic-versionঐচ্ছিক।
উত্তরে content টেক্সট ব্লক, stop_reason (end_turn, max_tokens, tool_use, refusal) এবং usage (input_tokens, output_tokens, cache_read_input_tokens) থাকে।
ত্রুটির বডি
এই এন্ডপয়েন্টে ত্রুটি Anthropic ধাঁচে আসে: { "type": "error", "error": { "type", "message" }, "request_id" }। এতে code ক্ষেত্র নেই; HTTP স্ট্যাটাস দেখুন। যেমন ৪০২ হলে billing_error, ৪২৯ হলে rate_limit_error। বিস্তারিত ইংরেজি সংস্করণে।