博文

AI Text Generation API Documentation

图片
  1. Overview This document outlines the usage and specifications of the AI Text Generation API. Powered by advanced artificial intelligence models, this API can generate high-quality text based on user-provided prompts. It is ideal for use cases such as intelligent writing assistants, content creation tools, and chatbots. 2. Basic Information API Name : AI Text Generation API Version : 1.0 HTTP Method : POST Endpoint :  https://api.example.com/ai/text/generate 3. Request Parameters Parameter Type Required Description prompt string Yes Input prompt to guide the text generation max_tokens int No Maximum length of generated text, default is 100 temperature float No Controls randomness of output; range: 0–1, default is 0.7 4. Response Parameters Parameter Type Description code int Response status code (200 = success) message string Response message, empty on success data object Contains the generated text - text string The generated text content 5. Request Example Copy Copy { ...