.do
Media

photos

Manage photos with edge-native delivery and AI optimization. Automatic format conversion, responsive sizing, and <50ms global delivery. Scale to billions of images.

photos

Photos.do

Overview

The photos primitive is part of the .do platform's semantic API system. It follows the $.Subject.verb.Object pattern for consistent, intuitive interactions across SDK, CLI, API, and MCP interfaces.

Semantic Pattern

All photos operations follow the semantic $.Photos.verb.Object pattern:

import { $, photos } from 'sdk.do'

// Create resources
await $.Photos.create.Resource({ /* config */ })

// Query data
await $.Photos.get.Data({ /* params */ })

// Update state
await $.Photos.update.Status({ /* changes */ })

Quick Start

import { photos } from 'sdk.do'

// Initialize and use the primitive
const result = await photos.operation({
  // configuration parameters
})

Access Methods

The photos primitive is accessible through multiple interfaces:

SDK

TypeScript/JavaScript library for programmatic access:

import { photos } from 'sdk.do'
await photos.method({ /* ... */ })

SDK Documentation

CLI

Command-line interface for terminal operations:

do photos <command> [options]

CLI Documentation

API

REST/RPC endpoints for HTTP integration:

curl -X POST https://api.do/v1/photos \
  -H "Content-Type: application/json" \
  -d '{"key":"value"}'

API Documentation

MCP

Model Context Protocol for AI assistant integration:

Use photos primitives with AI assistants via MCP

MCP Documentation

See other primitives in the media category.