点击或拖拽上传图片
支持 JPG、JPEG、PNG、GIF、WebP 等格式,最大 100MB
💡 你也可以直接 Ctrl+V 粘贴剪贴板中的图片
图片处理设置
配置您的图片上传和处理偏好
支持 JPG、JPEG、PNG、GIF、WebP 等格式,最大 100MB
💡 你也可以直接 Ctrl+V 粘贴剪贴板中的图片
配置您的图片上传和处理偏好
POST /api/upload
上传图片文件并返回多种格式的链接
X-API-Key: 您的API密钥请求体:
Content-Type: multipart/form-data字段名: image (文件)响应示例:
{ "success": true, "message": "Image uploaded successfully", "image_id": "AbC123...", "filename": "AbC123....jpg", "size": 125680, "links": { "direct": "https://www.nodeimage.com/i/your_user_id/AbC123....png", "html": "<img src="https://www.nodeimage.com/i/your_user_id/AbC123....png" alt="image">", "markdown": "", "bbcode": "[img]https://www.nodeimage.com/i/your_user_id/AbC123....png[/img]" }}
GET /api/image/{image_id}
获取指定图片的详细信息和链接
X-API-Key: 您的API密钥响应示例:
{ "image_id": "AbC123...", "filename": "AbC123....jpg", "size": 125680, "mimetype": "image/jpeg", "upload_time": "2025-06-11T12:00:00.000Z", "links": { "direct": "https://www.nodeimage.com/i/your_user_id/AbC123....png", "html": "<img src="https://www.nodeimage.com/i/your_user_id/AbC123....png" alt="image">", "markdown": "", "bbcode": "[img]https://www.nodeimage.com/i/your_user_id/AbC123....png[/img]" }}
DELETE /api/image/{image_id}
删除指定的图片文件
X-API-Key: 您的API密钥响应示例:
{ "success": true, "message": "Image deleted successfully"}
GET /api/images
获取当前用户的所有图片列表
X-API-Key: 您的API密钥响应示例:
{ "success": true, "count": 2, "images": [ { "image_id": "AbC123...", "filename": "AbC123....jpg", "user_id": "your_user_id", "size": 125680, "mimetype": "image/jpeg", "upload_time": "2025-06-11T12:00:00.000Z", "links": { "direct": "https://www.nodeimage.com/i/your_user_id/AbC123....png", "html": "<img src="https://www.nodeimage.com/i/your_user_id/AbC123....png" alt="image">", "markdown": "", "bbcode": "[img]https://www.nodeimage.com/i/your_user_id/AbC123....png[/img]" } } ]}
curl -X POST "https://www.nodeimage.com/api/upload" \ -H "X-API-Key: 您的API密钥" \ -F "image=@/path/to/your/image.jpg"
const formData = new FormData();formData.append('image', fileInput.files[0]);fetch('/api/upload', { method: 'POST', headers: { 'X-API-Key': '您的API密钥' }, body: formData}).then(response => response.json()).then(data => console.log(data));
import requestsfiles = {'image': open('image.jpg', 'rb')}headers = {'X-API-Key': '您的API密钥'}response = requests.post( 'https://www.nodeimage.com/api/upload', files=files, headers=headers)print(response.json())
需要通过 NodeSeek 授权才能使用图床服务
点击下方按钮跳转到 NodeSeek 授权页面
在 NodeSeek 完成授权后会自动返回