- 语言大模型
- 迁移API指南
- 独家功能
- 列出模型
- OpenAI
- Anthropic
- Gemini
- 国产模型
- 硅基流动
- 开源模型
- Chat(LLaMA3.3)
- Chat(LLaMA3.2多模态)
- Chat(LLaMA3.1)
- Chat(Mixtral-8x7B)
- Chat(Mistral-Large-2411)
- Chat(Mistral-small-2503)
- Chat(Pixtral-Large-2411多模态)
- Chat(Gemma-7B、Gemma-3-27b-it)
- Chat(Gemma2-9B)
- Chat(Command R+)
- Chat(Qwen2)
- Chat(Qwen2.5)
- Chat(Qwen2.5-VL)
- Chat(Llama-3.1-nemotron)
- Chat(QwQ-32B、QwQ-Plus、QwQ-32B-Preview)
- 专业模型
- 其他模型
- 图片生成
- DALL.E
- Stability.ai
- Midjourney
- Midjourney-Relax
- 302.AI
- SDXL(图片生成)
- SDXL-Lora(图片生成-Lora)
- SDXL-Lightning(快速图片生成)
- SDXL-Lightning-V2(快速图片生成V2)
- SDXL-Lightning-V3(快速图片生成V3)
- SD3(图片生成-SD3)
- SD3(图片生成-SD3-v2)
- Aura-Flow(图片生成)
- Kolors(图片生成-可灵)
- Kolors(参考图片生成-可灵)
- QRCode(艺术二维码生成)
- Lora(图片生成-Lora)
- SD-3.5-Large(图片生成)
- SD-3.5-Large-Turbo(图片生成)
- SD-3.5-Medium(图片生成)
- Lumina-Image-V2(图片生成)
- Playground-v25(图片生成)
- Omnigen-V1(图片生成)
- Glif
- Flux
- Ideogram
- Recraft
- Luma
- Doubao
- Minimax海螺
- 智谱
- 图片处理
- 302.AI
- Upscale(图片放大)
- Upscale-V2(图片放大V2)
- Upscale-V3(图片放大V3)
- Upscale-V4(图片放大V4)
- Super-Upscale(超级图片放大)
- Super-Upscale-V2(超级图片放大V2)
- Face-upscale(人像照片放大)
- Colorize(黑白照片上色)
- Colorize(黑白照片上色V2)
- Removebg(背景消除)
- Removebg-V2(背景消除V2)
- Inpaint(图片修改)
- Erase(物体消除)
- Face-to-many(人像照片风格化)
- Llava(图像识别)
- Relight(二次打光)
- Relight-background(二次打光背景合成)
- Relight-V2(二次打光-V2)
- Face-swap-V2(AI换脸V2)
- Fetch(获取任务结果)
- HtmltoPng(HTML转PNG格式)
- SvgToPng(SVG转PNG格式)
- image-translate(图片翻译)
- image-translate-query(图片翻译结果)
- image-translate-redo(图片翻译修改)
- Flux-selfie(自拍照片风格化)
- Trellis(图片转3D模型)
- Pose-Transfer(人物姿态变换)
- Pose-Transfer(人物姿态变换结果)
- Virtual-Tryon(虚拟穿衣)
- Virtual-Tryon(虚拟穿衣结果)
- Denoise(AI降噪)
- Deblur(AI去模糊)
- 302.AI-ComfyUI
- Vectorizer
- Stability.ai
- Fast Upscale(快速图片放大)
- Creative Upscale(创意图片放大)
- Conservative Upscale(保守图片放大)
- Fetch Creative Upscale(超级图片放大)
- Erase(物体消除)
- Inpaint(图片修改)
- Outpaint(图片扩展)
- Search-and-replace(内容替换)
- Search-and-recolor(内容重着色)
- Remove-background(背景消除)
- Sketch(草图转图片)
- Structure(以图生图)
- Style(风格一致性)
- Replace-Background(更换背景)
- Stable-Fast-3D(图片转3D模型)
- Stable-Point-3D(图片转3D模型新版)
- Glif
- Clipdrop
- Recraft
- BRIA
- Remove Background(背景消除)
- Blur Background(背景模糊)
- Generate Background(背景生成)
- Erase Foreground(擦除前景)
- Eraser(物体擦除)
- Expand Image(图片扩展)
- Increase Resolution(图片放大)
- Crop(图片裁切)
- Cutout(产品图裁剪)
- Packshot(产品图特写)
- Shadow (产品图阴影)
- Scene (产品图场景生成)
- Caption(图片描述)
- Register(图片上传)
- Mask(图片分割)
- Presenter info (人脸分析)
- Modify Presenter(人脸修改)
- Delayer Image(图片转PSD)
- Flux
- Hyper3D
- Tripo3D
- FASHN
- Ideogram
- Doubao
- Kling可灵
- 302.AI
- 视频生成
- 统一接口
- 302.AI
- Stable Diffusion
- Luma AI
- Runway Gen-3
- Kling可灵
- Txt2Video(文生视频1.0-快速-5秒)
- Image2Video(图生视频1.0-快速-5秒)
- Image2Video(图生视频1.0-快速-10秒)
- Txt2Video_HQ(文生视频1.5-高清-5秒)
- Txt2Video_HQ(文生视频1.5-高清-10秒)
- Image2Video(图生视频1.5-快速-5秒)
- Image2Video(图生视频1.5-快速-10秒)
- Image2Video_HQ(图生视频1.5-高清-5秒)
- Image2Video_HQ(图生视频1.5-高清-10秒)
- Txt2Video(文生视频1.6-标准-5秒)
- Txt2Video(文生视频1.6-标准-10秒)
- Txt2Video(文生视频1.6-高清-5秒)
- Txt2Video(文生视频1.6-高清-10秒)
- Image2Video(图生视频1.6-标准-5秒)
- Image2Video(图生视频1.6-标准-10秒)
- Image2Video(图生视频1.6-高清-5秒)
- Image2Video(图生视频1.6-高清-10秒)
- Image2Video(多图参考)
- Extend_Video(视频扩展)
- Fetch(获取任务结果)
- CogVideoX智谱
- Minimax海螺
- Pika
- PixVerse
- Genmo
- Hedra
- Haiper
- Sync.
- Lightricks
- Hunyuan混元
- Vidu
- 通义万相
- 即梦
- 硅基流动
- 昆仑万维
- 音视频处理
- 信息处理
- 302.AI
- 管理后台
- 信息搜索
- Xiaohongshu_Search(小红书搜索笔记)
- Xiaohongshu_Note(小红书获取笔记)
- Tiktok_Search(Tiktok搜索视频)
- Douyin_Search(抖音搜索视频)
- Twitter_Search(X搜索内容)
- Twitter_Post(X获取用户帖子)
- Twitter_User(X获取用户信息)
- Weibo_Post(微博获取用户帖子)
- Search_Video(Youtube搜索视频)
- Youtube_Info(Youtube获取视频信息)
- Youtube_Subtitles(Youtube获取字幕)
- Bilibili_Info(B站获取视频信息)
- MP_Article_List(获取微信公众号文章列表)
- MP_Article(获取微信公众号文章)
- 文件处理
- 代码运行
- Tavily
- SearchAPI
- Search1API
- Exa
- 博查AI
- Doc2x
- Glif
- Jina
- DeepL
- RSSHub
- 流光卡片
- 有道
- Mistral
- 302.AI
- RAG相关
- 工具API
- AI视频素材创意站
- AI论文写作
- AI播客制作
- AI文案助手
- AI视频深度翻译
- AI文档编辑器
- 网页数据提取工具
- AI答题机
- AI提示词专家
- AI 3D建模
- AI搜索大师3.0
- AI矢量图生成
- AI PPT制作
- AI学术论文搜索
- OWL
- 帮助中心
生成文章内容
正式环境
正式环境
POST
https://api.302.ai/302/writing/api/v1/longtext/generate
请求参数
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
title
string
标题
language
string
语言
默认值:
zh
model
string
模型
sections
array [object {3}]
大纲
type
string
内容类型
content
string
大纲内容
aspect_ratio
string
插图比例
img_demo
enum<string>
可选
枚举值:
only_netonly_aifirst_net
默认值:
only_ai
示例
{
"title": "特斯拉",
"language": "en",
"model": "gpt-4o-mini",
"sections": [
{
"type": "text",
"content": "Part 1 - Overview of Tesla - Word Count: 300 - This section introduces Tesla as a pioneering electric vehicle (EV) manufacturer founded in 2003 with the mission to accelerate the world's transition to sustainable energy. It outlines the company's key innovations, including electric powertrains, battery technology, and autopilot features. Key figures such as CEO Elon Musk's vision and leadership in developing Tesla's brand identity and global influence are discussed, providing insight into how Tesla has disrupted the automotive industry while advocating for renewable energy solutions."
},
{
"type": "image",
"content": "A visual representation of Tesla's logo and electric vehicles on a futuristic city backdrop, highlighting innovation and sustainability. The image should convey a sense of modern technology and the impact of electric vehicles on urban life. It should have a sleek design and vibrant colors, focusing on a Tesla car parked in the foreground with a solar-powered charging station nearby.",
"aspect_ratio": "16:9"
},
{
"type": "text",
"content": "Part 2 - Tesla's Impact on Transportation - Word Count: 1000 - This section delves into Tesla's significant impact on the transportation sector, analyzing how the introduction of electric vehicles has altered consumer perceptions and automotive industry dynamics. It covers Tesla's market strategies, including direct sales through company-owned showrooms, innovative financing options, and the creation of a robust supercharger network. Additionally, the section examines the environmental implications of Tesla's electric cars, including reduced emissions and energy consumption, contrasting traditional internal combustion vehicles with electric alternatives. Consumer testimonials and sales data illustrate Tesla’s growing popularity, while also addressing challenges such as range anxiety and competition in the electric vehicle market. Furthermore, this part discusses the company's future vision, focusing on advancements in autonomous driving technology and the potential for a fully electric transportation ecosystem."
},
{
"type": "image",
"content": "An infographic showcasing Tesla's sales growth over the years alongside a visual comparison of CO2 emissions from electric versus traditional vehicles. The elements should clearly illustrate the trend in electric vehicle adoption and highlight the environmental benefits. Data charts and illustrations of cars should be included in an attractive layout that effectively communicates the message.",
"aspect_ratio": "4:3"
},
{
"type": "text",
"content": "Part 3 - Future Technologies and Innovations - Word Count: 1200 - This section explores Tesla's cutting-edge technologies and future innovations aimed at enhancing electric vehicle performance and sustainability. Key topics include advancements in battery technology, such as the development of solid-state batteries and Tesla's energy products like the Powerwall and solar panels. The potential for vehicle-to-grid technology and its implications for energy management and consumer savings is discussed. Additionally, the prospects of continuous software updates and artificial intelligence in improving Tesla's autonomous driving capabilities are examined. The section also analyzes Tesla's plans for expanding its manufacturing footprint globally, including the construction of Gigafactories and their role in meeting increasing demand for electric vehicles. Finally, the challenges Tesla faces in scaling production and maintaining quality while pushing for rapid innovation are addressed, along with strategic partnerships and regulatory considerations impacting the company's future roadmap."
},
{
"type": "image",
"content": "A futuristic illustration of Tesla's Gigafactory, depicting solar panels on the roof and electric cars in the production line. The setting should highlight the state-of-the-art technology used in manufacturing and the commitment to sustainability, with green spaces around the factory. The image should evoke a sense of innovation and progress in electric vehicle production.",
"aspect_ratio": "16:9"
}
],
"img_demo": "first_net"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.302.ai/302/writing/api/v1/longtext/generate' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"title": "特斯拉",
"language": "en",
"model": "gpt-4o-mini",
"sections": [
{
"type": "text",
"content": "Part 1 - Overview of Tesla - Word Count: 300 - This section introduces Tesla as a pioneering electric vehicle (EV) manufacturer founded in 2003 with the mission to accelerate the world'\''s transition to sustainable energy. It outlines the company'\''s key innovations, including electric powertrains, battery technology, and autopilot features. Key figures such as CEO Elon Musk'\''s vision and leadership in developing Tesla'\''s brand identity and global influence are discussed, providing insight into how Tesla has disrupted the automotive industry while advocating for renewable energy solutions."
},
{
"type": "image",
"content": "A visual representation of Tesla'\''s logo and electric vehicles on a futuristic city backdrop, highlighting innovation and sustainability. The image should convey a sense of modern technology and the impact of electric vehicles on urban life. It should have a sleek design and vibrant colors, focusing on a Tesla car parked in the foreground with a solar-powered charging station nearby.",
"aspect_ratio": "16:9"
},
{
"type": "text",
"content": "Part 2 - Tesla'\''s Impact on Transportation - Word Count: 1000 - This section delves into Tesla'\''s significant impact on the transportation sector, analyzing how the introduction of electric vehicles has altered consumer perceptions and automotive industry dynamics. It covers Tesla'\''s market strategies, including direct sales through company-owned showrooms, innovative financing options, and the creation of a robust supercharger network. Additionally, the section examines the environmental implications of Tesla'\''s electric cars, including reduced emissions and energy consumption, contrasting traditional internal combustion vehicles with electric alternatives. Consumer testimonials and sales data illustrate Tesla’s growing popularity, while also addressing challenges such as range anxiety and competition in the electric vehicle market. Furthermore, this part discusses the company'\''s future vision, focusing on advancements in autonomous driving technology and the potential for a fully electric transportation ecosystem."
},
{
"type": "image",
"content": "An infographic showcasing Tesla'\''s sales growth over the years alongside a visual comparison of CO2 emissions from electric versus traditional vehicles. The elements should clearly illustrate the trend in electric vehicle adoption and highlight the environmental benefits. Data charts and illustrations of cars should be included in an attractive layout that effectively communicates the message.",
"aspect_ratio": "4:3"
},
{
"type": "text",
"content": "Part 3 - Future Technologies and Innovations - Word Count: 1200 - This section explores Tesla'\''s cutting-edge technologies and future innovations aimed at enhancing electric vehicle performance and sustainability. Key topics include advancements in battery technology, such as the development of solid-state batteries and Tesla'\''s energy products like the Powerwall and solar panels. The potential for vehicle-to-grid technology and its implications for energy management and consumer savings is discussed. Additionally, the prospects of continuous software updates and artificial intelligence in improving Tesla'\''s autonomous driving capabilities are examined. The section also analyzes Tesla'\''s plans for expanding its manufacturing footprint globally, including the construction of Gigafactories and their role in meeting increasing demand for electric vehicles. Finally, the challenges Tesla faces in scaling production and maintaining quality while pushing for rapid innovation are addressed, along with strategic partnerships and regulatory considerations impacting the company'\''s future roadmap."
},
{
"type": "image",
"content": "A futuristic illustration of Tesla'\''s Gigafactory, depicting solar panels on the roof and electric cars in the production line. The setting should highlight the state-of-the-art technology used in manufacturing and the commitment to sustainability, with green spaces around the factory. The image should evoke a sense of innovation and progress in electric vehicle production.",
"aspect_ratio": "16:9"
}
],
"img_demo": "first_net"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}
修改于 2025-01-24 11:19:17