models/Microsoft/ResNet-50
Microsoft

ResNet-50

vision
Playground →Compare

Reference ResNet-50 trained on ImageNet-1K. Useful baseline for vision pipelines.

MODALITIES
image
PER IMAGE
$0.0002

ResNet-50 (microsoft/resnet-50) is a vision model from Microsoft. Context window: tokens; max output . Pricing via AIgateway: $0.0002 per image. Call it via https://api.aigateway.sh/v1/chat/completions with the OpenAI SDK — set model="microsoft/resnet-50". Best for: ImageNet classification, Image tagging baselines.

model · microsoft/resnet-50family · ResNet

Use this model

model: microsoft/resnet-50
curl https://api.aigateway.sh/v1/chat/completions \
  -H "Authorization: Bearer $AIGATEWAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"microsoft/resnet-50","messages":[{"role":"user","content":"hello"}],"stream":true}'

Capabilities

Strengths

  • Classic image classifier
  • Tiny cost
  • Fast

Use cases

ImageNet classificationImage tagging baselines

Pricing

Per image$0.0002
Open-weight · ImageNet classes
You pay pass-through pricing.
Try in playground →CompareAPI referenceSee usage ranking →

Collections

More image models →More from MicrosoftFrontier models →Free-tier models →
API schema

Call ResNet-50 from any OpenAI SDK

POST https://api.aigateway.sh/v1/chat/completions·Content-Type: application/json·Auth: Bearer sk-aig-...

Request body

json
{
  "model": "microsoft/resnet-50",
  "messages": [
    { "role": "system", "content": "You are a helpful assistant." },
    { "role": "user",   "content": "Hello!" }
  ],
  "temperature": 0.7,
  "top_p": 0.95,
  "max_tokens": 1024,
  "stream": false

}

Response

json
{
  "id": "chatcmpl-abc123",
  "object": "chat.completion",
  "created": 1776947082,
  "model": "microsoft/resnet-50",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! How can I help you today?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 24,
    "completion_tokens": 12,
    "total_tokens": 36
  }
}

Quickstart

# pip install aigateway-py openai
# aigateway-py adds sub-accounts, evals, replays, jobs, webhook verify.
# openai SDK covers chat — drop-in per our SDK's own guidance.
from openai import OpenAI

client = OpenAI(
    base_url="https://api.aigateway.sh/v1",
    api_key="sk-aig-...",
)

r = client.chat.completions.create(
    model="microsoft/resnet-50",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(r.choices[0].message.content)

Errors

401authentication_errorInvalid or missing API key
402insufficient_creditsWallet empty (PAYG only)
404not_foundUnknown model or endpoint
429rate_limit_errorOver per-minute limit — see Retry-After header
500server_errorUpstream provider failed (retryable)
503service_unavailableUpstream saturated (retryable)
Full docs →API reference →OpenAPI spec →llms.txt →

Frequently asked questions

What is ResNet-50?
Reference ResNet-50 trained on ImageNet-1K. Useful baseline for vision pipelines. It is a vision model from Microsoft, accessible via AIgateway's OpenAI-compatible API at slug microsoft/resnet-50.
How much does ResNet-50 cost via AIgateway?
$0.0002 per image, billed pass-through.
How do I call ResNet-50 from my code?
Point the OpenAI SDK at https://api.aigateway.sh/v1 with your AIgateway key and set model to "microsoft/resnet-50". The request and response shapes match OpenAI exactly.
Does ResNet-50 support streaming, tool calling, vision, and JSON mode?
Streaming — no. Tool calling — no. Vision — no. JSON mode — no. Prompt caching — no.
What are the best use cases for ResNet-50?
ImageNet classification, Image tagging baselines. Key strengths: Classic image classifier; Tiny cost; Fast.
Can I bring my own Microsoft API key (BYOK)?
Yes. Attach a Microsoft key in your AIgateway dashboard and this model flips to pass-through — you pay Microsoft directly and AIgateway adds no platform fee on those calls.