Based on the image you provided: Family Sunset Photo
Extracted Content:
- Title: "Family Enjoying a Sunny Day in a Field"
- Description: "The image depicts a woman and two children in a sunlit field. The woman, wearing a pink sweater, is kneeling and facing the children, who are standing. The child on the left, a young girl, is wearing a pink top and has her hair in a ponytail. The child on the right, a young boy, is wearing a blue shirt. The sun is setting or rising in the background, casting a warm glow over the scene. The field is filled with tall, golden grass, and there are trees in the distance."
- Text Found: "iStock Credit: kieferpix 1468298683"
POST http://localhost:8000/transcribe-image-url
Content-Type: application/json
Accept: application/json
{
"url": "https://media.istockphoto.com/id/1468298683/pt/foto/mother-and-her-two-children-boy-and-girl-relaxing-in-nature-grass-field-watching-the-sunset.jpg?s=2048x2048&w=is&k=20&c=7wMm1zEerJCW3xDdm2gwovcdTBeU7DeayHEaYDNsJBI="
}{
"file_id": "e5de9397-0431-4e8c-85e6-2ff1250210fe",
"file_info": {
"name": "family_sunset.jpg",
"extension": ".jpg",
"size_mb": 0.34,
"mime_type": "image/jpeg",
"duration": null,
"chunks_processed": null,
"url": "https://media.istockphoto.com/id/1468298683/pt/foto/mother-and-her-two-children-boy-and-girl-relaxing-in-nature-grass-field-watching-the-sunset.jpg?s=2048x2048&w=is&k=20&c=7wMm1zEerJCW3xDdm2gwovcdTBeU7DeayHEaYDNsJBI="
},
"success": true,
"error": null,
"title": "Family Enjoying a Sunny Day in a Field",
"description": "The image depicts a woman and two children in a sunlit field. The woman, wearing a pink sweater, is kneeling and facing the children, who are standing. The child on the left, a young girl, is wearing a pink top and has her hair in a ponytail. The child on the right, a young boy, is wearing a blue shirt. The sun is setting or rising in the background, casting a warm glow over the scene. The field is filled with tall, golden grass, and there are trees in the distance.",
"extracted_text": "iStock\nCredit: kieferpix\n1468298683",
"processor_used": "OpenAI Vision",
"processing_time": 4.228828,
"timestamp": "2025-09-23T14:17:51.668013"
}If you want to upload the image file directly instead of using a URL:
POST http://localhost:8000/transcribe-image
Accept: application/json
Key: file
Type: File
Value: [Select your downloaded image file]
{
"url": "https://picsum.photos/800/600"
}{
"url": "https://raw.githubusercontent.com/user/repo/main/image.png"
}{
"url": "https://i.imgur.com/example.jpg"
}- Name: "AI Content Processing API"
- Description: "Image processing and text extraction"
api_base_url: http://localhost:8000
- Name: "Transcribe Image URL"
- Method: POST
- URL:
{{api_base_url}}/transcribe-image-url
// Log the request
console.log("Processing image URL:", pm.request.body.raw);// Test successful response
pm.test("Status code is 200", function () {
pm.response.to.have.status(200);
});
pm.test("Response has success field", function () {
var jsonData = pm.response.json();
pm.expect(jsonData).to.have.property('success');
});
pm.test("Processing was successful", function () {
var jsonData = pm.response.json();
pm.expect(jsonData.success).to.eql(true);
});
pm.test("Response has extracted content", function () {
var jsonData = pm.response.json();
pm.expect(jsonData).to.have.property('title');
pm.expect(jsonData).to.have.property('description');
pm.expect(jsonData).to.have.property('extracted_text');
});
// Log results
var response = pm.response.json();
if (response.success) {
console.log("Title:", response.title);
console.log("Description:", response.description);
console.log("Extracted Text:", response.extracted_text);
console.log("Processing Time:", response.processing_time + "s");
}Create an environment with:
api_url:http://localhost:8000image_url:https://media.istockphoto.com/id/1468298683/pt/foto/mother-and-her-two-children-boy-and-girl-relaxing-in-nature-grass-field-watching-the-sunset.jpg?s=2048x2048&w=is&k=20&c=7wMm1zEerJCW3xDdm2gwovcdTBeU7DeayHEaYDNsJBI=
Use in your request body:
{
"url": "{{image_url}}",
"filename": "{{$randomFileName}}.jpg"
}Add to Tests script:
// Save response to environment
var response = pm.response.json();
pm.environment.set("last_extracted_text", response.extracted_text);
pm.environment.set("last_processing_time", response.processing_time);Add to Headers:
Origin: http://localhost:3000
For very long URLs, encode them:
// Pre-request script
var encodedUrl = encodeURIComponent(pm.environment.get("image_url"));
pm.environment.set("encoded_image_url", encodedUrl);Increase timeout in Settings > General > Request timeout
Add to Headers:
Authorization: Bearer your_api_token
For mobile app development, test with:
{
"url": "https://media.istockphoto.com/id/1468298683/pt/foto/mother-and-her-two-children-boy-and-girl-relaxing-in-nature-grass-field-watching-the-sunset.jpg?s=2048x2048&w=is&k=20&c=7wMm1zEerJCW3xDdm2gwovcdTBeU7DeayHEaYDNsJBI=",
"filename": "mobile_upload.jpg"
}Create multiple requests with different image URLs:
- Stock photos
- Screenshots
- Documents with text
- Handwritten notes
- Social media images
Each will return different extracted content based on what's visible in the image!