ERNIE Bot
communityBaidu large language model with text generation, code, and multimodal understanding.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
POST
https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/chat/completionsChat completion
Parameters
streamstream response (booleanoptionalmessagesconversation array (arrayrequiredtemperature0-1 (numberoptionalReturns
result (response text), usage with prompt_tokens, completion_tokens, total_tokensPOST
https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/embeddings/embedding-v1Text embedding
Parameters
inputtext array (string[]requiredReturns
data[] with embedding, index, object; usage with prompt_tokens, total_tokensPOST
https://aip.baidubce.com/rpc/2.0/ai_custom/v1/wenxinworkshop/text2image/sd_xlGenerate image
Parameters
nnumber of images (integeroptionalsize1024x1024 (stringoptionalpromptimage description (stringrequirednegative_promptexclusion (stringoptionalReturns
data[] with b64_image, index