Depending on how much capability you need, use the on device...

52b4a076bcbbbdc3...

npub12262qa4uhw7u8gdwlgmntqtv7aye8vdcmvszkqwgs0zchel6mz7s6cgrkj

hex

d83fb7fbc6b97f8eabedf06be31d8820552a7748ba514b6330bb39a1d67d73b4

nevent

nevent1qqsds0ahl0rtjluw40klq6lrrkyzq4f2wayt552tvvctkwdp6e7h8dqprpmhxue69uhhyetvv9ujuem4d36kwatvw5hx6mm9qgs99d9qw67th0wr5xh05de4s9k0wjvnkxudkgptq8yg83vtulad30g2lyq87

Kind-1 (TextNote)

2026-05-02T10:55:16Z

↳ 回复 HaloKat (npub1r0rs5q2gk0e3dk3nlc7gnu378ec6cnlenqp8a3cjhyzu6f8k5sgs4sq9ac)

What’s the best way to implement AI functions in iOS apps and pass the cost to user without having them configure anything? #asknostr

Depending on how much capability you need, use the on device ML/Foundation Model APIs.

For larger use cases add OpenRouter+OpenAI+Anthropic key input and possibly OpenAI OAuth2 for using Codex limits

原始 JSON

{
  "kind": 1,
  "id": "d83fb7fbc6b97f8eabedf06be31d8820552a7748ba514b6330bb39a1d67d73b4",
  "pubkey": "52b4a076bcbbbdc3a1aefa3735816cf74993b1b8db202b01c883c58be7fad8bd",
  "created_at": 1777719316,
  "tags": [
    [
      "e",
      "26b098ce054b772e1547a2a9252a47142c2c349b6e237af6447a0102be3463b7",
      "wss://nos.lol",
      "root",
      "1bc70a0148b3f316da33fe3c89f23e3e71ac4ff998027ec712b905cd24f6a411"
    ],
    [
      "p",
      "1bc70a0148b3f316da33fe3c89f23e3e71ac4ff998027ec712b905cd24f6a411"
    ]
  ],
  "content": "Depending on how much capability you need, use the on device ML/Foundation Model APIs.\n\nFor larger use cases add OpenRouter+OpenAI+Anthropic key input and possibly OpenAI OAuth2 for using Codex limits",
  "sig": "061093a65cb69bc919c5289e87d581f3fbc69508085ba998cdeee33b29162874e20257fb943b212a4bea9247d53754ec2af599b991e578c29f277ed7a605f831"
}